consult_gemini_with_files
Ask Gemini questions about your code files by including their paths in your query. Get responses based on the file contents.
Instructions
Send a query to the Gemini CLI with file context.
Args:
query: Prompt text forwarded to the CLI.
directory: Working directory used for resolving relative file paths.
files: Relative or absolute file paths to include alongside the prompt.
model: Optional model alias (flash, pro) or full Gemini model id.
timeout_seconds: Optional per-call timeout override in seconds.
mode: "inline" streams truncated snippets; "at_command" emits
@path directives so Gemini CLI resolves files itself.
Returns: Gemini's response or an explanatory error string with any warnings.
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": {
"query": "<query>",
"directory": "<directory>"
},
"name": "consult_gemini_with_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| directory | Yes | ||
| files | No | ||
| model | No | ||
| timeout_seconds | No | ||
| mode | No | inline |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |