agy_task
Delegate a coding task to Antigravity in an isolated git worktree and sandbox, then review the returned diff, denied actions, and response before committing or cleaning up.
Instructions
Delegate a coding task to Antigravity (agy). Creates a new git worktree on branch agy/<task_id> from base, runs agy there inside a bubblewrap sandbox with file edits allowed and terminal commands denied, and returns agy's response, denied actions and the diff (truncated beyond AGY_MCP_MAX_DIFF_CHARS; embedded repositories are listed, not diffed). agy never commits; review the diff, run checks yourself, then commit and merge the branch or discard it with agy_cleanup.
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": {
"repo": "<repo>",
"task": "<task>"
},
"name": "agy_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base | No | Commit-ish to branch from. Defaults to HEAD. | |
| repo | Yes | Absolute path of the git repository (must be inside AGY_MCP_ALLOWED_ROOTS). | |
| task | Yes | Self-contained brief: goal, files involved, constraints, acceptance criteria. | |
| model | No | agy model id, e.g. gemini-4-neon-medium. Run `agy models` to list them. Omit for the configured default. | |
| effort | No | Reasoning effort for this run. |