gemini-ask
Send a prompt to Google Gemini and receive direct answers for questions, code review, analysis, edits, or structured JSON. Reference project files with @path and continue conversations by passing a conversation ID.
Instructions
Send one prompt to Google Gemini (or the Claude and GPT-OSS models the Antigravity CLI also offers) and get the answer back: questions, code review, analysis, edits, structured JSON. Reference project files with @path to send their contents along. Pass conversationId to continue a thread. For a phased implementation blueprint use gemini-plan; for idea generation use gemini-brainstorm; for everything else use this.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Agent execution mode: 'plan' for architectural analysis without modifying files, 'accept-edits' for direct edit application. | |
| agent | No | Optional custom agent to run instead of the default one (the name of an agent.md agent, e.g. a reviewer persona). Ignored by an agy build without --agent. | |
| model | No | Model to use — any id 'gemini-models' lists, or the aliases 'flash' and 'pro'. Leave it unset and no --model is sent at all, so agy answers on whatever model it is itself configured to use. | |
| effort | No | Reasoning effort ('low', 'medium', 'high') for Gemini 3.8 Flash, 3.7 Flash, and 3.1 Pro. Controls depth of thinking tokens. | |
| prompt | Yes | Analysis request. Use @ syntax to include files (e.g., '@largefile.js explain what this does') or ask general questions | |
| addDirs | No | Optional additional workspace directories to provide context to Gemini. | |
| sandbox | No | Ask the CLI to run in sandbox mode. The agy backend forwards it but does not isolate tool execution in headless runs, and says so in a notice; the legacy gemini backend does isolate. | |
| changeMode | No | Enable structured change mode - formats prompts to prevent tool errors and returns structured edit suggestions that Claude can apply directly | |
| chunkIndex | No | Which chunk of a changeMode response to return (1-based). With chunkCacheKey it reads the cached chunk; alone, it selects which chunk of a fresh changeMode result to return. | |
| jsonSchema | No | Optional JSON schema to enforce structured output from Gemini. | |
| includeUsage | No | Set to true to append token usage and timing metrics to the response. Ignored when jsonSchema is set, so the body stays valid JSON. | |
| chunkCacheKey | No | The 8-hex-character cache key a multi-chunk changeMode response reported, to fetch a later chunk without re-running the analysis. | |
| conversationId | No | Optional conversation ID to resume a previous session. A plain-text reply reports the ID of the conversation it created or continued; a jsonSchema or changeMode reply does not, because its body is parsed. | |
| skipPermissions | No | Set to true to run agy with --dangerously-skip-permissions. This genuinely changes behaviour: since agy 1.1.5 headless runs honour the persisted permission settings, so without it a tool call the settings do not allow is refused with nobody there to approve it. | |
| allowSlashCommands | No | Set to true to let a prompt starting with '/' expand as an agy command or skill (e.g. '/usage', '/skills'), which answers for free without a model turn. Default false: the prompt goes to the model verbatim. |