ask_gemini
Send a prompt, files, or a git diff to Gemini for a second opinion, code review, or large-file analysis; responses are read-only and logged for later recall.
Instructions
Ask Gemini (via the Antigravity CLI) a question or hand it a task, optionally with files as context. Gemini runs without tool access: it only sees the prompt and the inlined files. Good for second opinions and reading many large files at once.
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": "ask_gemini"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | No | Attach a git diff: "staged" (index vs HEAD), "working" (unstaged), "HEAD" (all uncommitted changes), a ref, or a range like "main...HEAD". Counts against the size limit. | |
| files | No | Paths relative to the project root (max 20 files, 500 KB total). Also accepts line ranges (src/a.ts:40-120), directories (src/) and globs (src/**/*.ts); globs and directories respect .gitignore. Contents are inlined into the prompt. | |
| model | No | Model ID as listed by `agy models`; the suffix is the reasoning effort, e.g. gemini-3.8-flash-low | -medium | -high. Omit to use the configured default (.zwilling.json, else agy's). Higher effort is slower. | |
| models | No | Compare up to 4 models: the same prompt runs on each in parallel and the answers come back under one heading per model. Use instead of `model`, not together with it. | |
| prompt | Yes | The question or task for Gemini. | |
| follow_up | No | Log entry id of an earlier answer (e.g. g-20261113-a1b2c3, shown after every answer). Its question and answer are sent along as context. One level only: the earlier entry's own history is not included. | |
| timeout_s | No | Timeout for this call in seconds (default 120). |