Ask Antigravity (new conversation)
antigravity_askStarts a new Antigravity/Gemini conversation for quick tool calls or short coding tasks; pass a workspace so the sub-agent can see your repo, then continue with 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. Omitted: false, unless the user set AGENT_INTERN_AGY_DEFAULT=plan; an explicit true/false always wins. | |
| model | No | Optional model slug (agy's --model), e.g. "gemini-4-neon-high" or "gemini-3.8-flash-low", or one without its effort suffix ("gemini-4-neon"). Omit for agy's settings.json default (Gemini 4 Neon (High) on a fresh install as of agy 1.5.20). 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. A higher effort (xhigh) thinks longer at every step, so it is slower on multi-step work. | |
| 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 600: a multi-step turn, web research above all, often runs past 3 minutes. If it still times out, the error says how to get the answer from the work done so far with antigravity_continue. | |
| 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 |