gemini_query
Offloads token-heavy tasks like analyzing large files, summarizing logs, or getting second opinions to Google Gemini. Attach files as context by absolute path; returns Gemini's text response.
Instructions
Send a query to Google Gemini with optional file context. Use this tool when you need to delegate a task that would consume a large amount of tokens — for example: reading and analyzing a very large file (>1000 lines), summarizing lengthy logs, getting a second opinion on complex analysis, or processing content that exceeds your comfortable context window. Gemini has a very large context window (1M+ tokens) and can handle these tasks efficiently. You can attach files as context by providing their absolute paths. Returns Gemini's text response.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "gemini_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Override the default Gemini model. Examples: "gemini-2.5-pro", "gemini-2.5-flash". If omitted, uses the server default (GEMINI_MODEL env var or gemini-2.5-pro). | |
| prompt | Yes | The question, instruction, or task for Gemini. Be specific and detailed for best results. | |
| context_files | No | Optional array of absolute file paths to include as context. The content of these files will be prepended to the prompt. Binary files (images, archives, etc.) are automatically skipped. |