consult_gemini
Analyze a codebase by asking questions. Gemini autonomously reads files, lists directories, and searches code to provide answers, eliminating the need to pre-read files.
Instructions
Consult Gemini for codebase analysis.
Gemini autonomously explores our project — reading files, listing directories, and searching code — so we don't need to pre-read files. Just describe what we need. Use file_paths only when specific files must be included.
Pipeline: For auto, flash, and pro, Lite explores quickly first, then our selected model synthesizes. "lite" and explicit model IDs skip the exploration phase and query directly. Gemini's tools: list_directory, read_file, search_project, git, gemini_search; FileSearch stores are searched automatically when present.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | The question or instruction | |
| model | No | "auto" (default, Lite explore → Flash analyze), "flash", "pro", "lite", or full model ID | auto |
| file_paths | No | Local text files to read and include inline as context | |
| media_paths | No | Local image/PDF files (.png, .jpg, .webp, .gif, .pdf) for vision analysis | |
| file_uris | No | Gemini File API URIs (from upload_file). Use for large files that exceed inline limits | |
| json_mode | No | Return structured JSON output | |
| response_schema | No | JSON schema string for structured output | |
| cached_content | No | Gemini context cache name | |
| thinking | No | Thinking level: "minimal", "low", "medium", "high", or None. Pro defaults to "high" |