antigravity_task
Delegate a well-scoped coding task or second-opinion review to Google Antigravity via the official CLI; returns the agent's response, changed files, and a conversation ID for follow-ups.
Instructions
Delegate a task to Google Antigravity, running the official Antigravity CLI (agy --print) on this computer with the user's own Antigravity account. Good for a second opinion or review, a well-scoped implementation, or parallel work. Write a self-contained prompt: goal, relevant files, constraints, what to report back. Returns the agent's final response, the files it changed, and a conversation_id that continues the same conversation. Runs longer than wait_seconds return a job_id: poll it with antigravity_job.
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_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Absolute path of the workspace folder. Must be inside the allowed folders. Required for a new conversation; when resuming, defaults to the folder it ran in. | |
| model | No | Model slug from antigravity_models (e.g. gemini-4-neon-high, claude-sonnet-5-5-medium), or "auto" (the default for a new conversation): the strongest model of the quota pool with the most quota left. When resuming, defaults to the model the conversation used. | |
| access | No | read-only: plan mode, no changes (default). edit: may edit files, shell commands are denied. full: every tool auto-approved, including shell commands (use only when the user agreed). | |
| effort | No | Reasoning effort. Omit for the model default. | |
| prefer | No | With model "auto": pick the strongest (default) or the fastest model of that pool. | |
| prompt | Yes | Complete instructions for the Antigravity agent. | |
| sandbox | No | With access full: run with agy's terminal restrictions (--sandbox). Default true. | |
| add_dirs | No | Extra folders agy may read (also checked against the allowed folders). | |
| fallback | No | If the model's quota pool runs out, re-run automatically once with a model from the other pool. Default true with model "auto", false otherwise. | |
| isolation | No | worktree: run in a new git worktree on branch agy/<id>, starting from HEAD, so the user's checkout and other runs are never touched. Review the result, then commit it on the branch or discard it with antigravity_job. Uncommitted changes in cwd are not copied. Default none. | |
| wait_seconds | No | Seconds to wait before returning a job_id (0-240, default 50). Ignored when the client runs the call as an MCP task. | |
| conversation_id | No | Continue an earlier Antigravity conversation. | |
| timeout_seconds | No | Hard limit per agy run (agy --print-timeout). Default 1800. |