# How to properly use the Google Search tool in batch requests? (ValidationError & Internal Error)

**URL:** <https://discuss.ai.google.dev/t/how-to-properly-use-the-google-search-tool-in-batch-requests-validationerror-internal-error/93079>\
**Category:** Gemini API\
**Tags:** api, grounding\
**Created:** [July 9, 2025, 7:40am UTC](https://discuss.ai.google.dev/t/how-to-properly-use-the-google-search-tool-in-batch-requests-validationerror-internal-error/93079 "2025-07-09T07:40:18Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![Conrad\_Xie](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/conrad_xie/32/32882_2.png) [@Conrad\_Xie](https://discuss.ai.google.dev/u/Conrad_Xie)\
**Post date:** [July 17, 2025, 12:36pm UTC](https://discuss.ai.google.dev/t/how-to-properly-use-the-google-search-tool-in-batch-requests-validationerror-internal-error/93079/11 "2025-07-17T12:36:59Z")

</div>

Same issure here. It seems that inside genai, inlinedRequest only permits a list of contents. According to the offical document, it should accept a list of `GenerateContentRequest`.  
I think it’s a bug. You can refer to the class definition of `genai.types.InlinedRequest`.

---

_[View the full topic](https://discuss.ai.google.dev/t/how-to-properly-use-the-google-search-tool-in-batch-requests-validationerror-internal-error/93079)._
