api_call
Send any Gemini API request the SDK supports to use new models or features before dedicated tools exist; media outputs are saved to disk.
Instructions
Raw Interactions API gateway: send ANY request the SDK supports; media outputs are saved. Use it for brand-new models/features before a dedicated tool exists (see docs_search for schemas).
model or agent: one is required. input: text or a content list ([{"type":"text","text":"..."}]). files: local files appended to the input. response_format / generation_config / tools / environment / agent_config: passed through as-is. beta: use the v1beta client (default).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "api_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| beta | No | ||
| agent | No | ||
| files | No | ||
| input | No | ||
| model | No | ||
| tools | No | ||
| filename | No | ||
| force_new | No | ||
| background | No | ||
| environment | No | ||
| agent_config | No | ||
| response_format | No | ||
| generation_config | No | ||
| system_instruction | No | ||
| previous_interaction_id | No |