gemini_structured_tool
Get structured JSON output from Gemini by sending a prompt with an optional JSON schema. Enable Google Search to ground responses in current web data.
Instructions
Get structured JSON output from Gemini.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model to use. | flash |
| prompt | Yes | The prompt to generate structured output for. | |
| schema | No | Optional JSON schema to constrain the output. | |
| use_google_search | No | Ground response with Google Search. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||