Ask Antigravity (new conversation)
antigravity_askAsk Gemini via Antigravity CLI a question or short task in a new conversation, with an optional workspace for repo context and follow-ups through antigravity_continue.
Instructions
Best for fast, cheap tool-calling and short tasks on Gemini (agy CLI), in a NEW
conversation. Pass workspace=; without it the sub-agent sees no repo.
Follow up with antigravity_continue. Uses your AI Pro login; pick a bigger model
for heavier reasoning. No real sandbox (plan=True is agent-enforced read-only).
Autonomous agent: trusted prompts only.
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": "antigravity_ask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | No | If true, run agy in PLAN mode (agy 1.1.12+): it reads and answers, and diverts file writes and shell commands into a plan document instead (verified even when the prompt insists). Use it to point Antigravity at a repo you don't want edited. Agent-enforced, not an OS sandbox (codex has the real one). A prompt whose first token is a slash command is rejected in plan mode, and an agy older than 1.1.12 raises rather than running unrestricted. Default false. | |
| model | No | Optional model slug (agy's --model), e.g. "gemini-4-argon-high" or "gemini-3.8-flash-low", or one without its effort suffix ("gemini-4-argon"). Omit for agy's settings.json default (Gemini 4 Argon (Medium) as of agy 1.5.1). Checked against `agy models`: an unknown slug is rejected up front, since agy renames and drops models between releases. Quota is per model family; a quota failure names a family that still has some. | |
| watch | No | If true, open a live "watch" view in your browser that streams agy's steps (narration + the real commands it runs) as it works. agy still runs headless; the same final text is returned. Best- effort and cross-platform — if the browser can't open, the run completes normally. Default false. | |
| prompt | Yes | Question or instruction for Antigravity. | |
| schema | No | Optional JSON Schema (an object, or its JSON text). Returns agy's VALIDATED object (`structured_output`) as JSON text instead of prose; json.loads it. Raises if agy produces none. Needs agy 1.1.8+. IMPORTANT: write the prompt so the ANSWER is worked out in the turn, and let the schema only shape it. agy fills the schema in a final pass that does not re-reason, so a judgment left to the schema gets guessed (measured: flipping an enum's order flipped the verdict). Extraction is reliable; delegated judgment is not. | |
| timeout_s | No | Max seconds to wait for agy to complete. Default 180. | |
| workspace | No | Working directory for the conversation. Defaults to cwd. Choose an existing project dir for context-aware responses. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |