agy_execute
Delegates heavy coding, editing, and testing tasks to an autonomous headless agent, showing live progress and preserving context window.
Instructions
Spins up a headless Antigravity (agy) agent to autonomously execute heavy coding, editing, refactoring, research, or testing tasks with live streaming progress, thinking token logs, tool tracing, and token savings metrics.
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": {
"instructions": "<instructions>"
},
"name": "agy_execute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Execution mode: accept-edits (standard autonomous editing) or plan (planning mode). | accept-edits |
| async | No | Run task asynchronously in background. RECOMMENDED in Claude Desktop for any real coding tasks (>45s) to prevent Claude Desktop 60-second MCP client timeouts. Check status with agy_check_task. | |
| model | No | Optional specific model identifier for agy. | |
| effort | No | Reasoning effort (low, medium, high). Default is high. | high |
| instructions | Yes | Detailed step-by-step instructions for agy. Specify target file paths, constraints, test commands, and exact functional requirements. | |
| workspace_dir | No | Target workspace directory path (MANDATORY in Claude Desktop to point to the project repo, otherwise agy runs inside Claude desktop internal directory). Defaults to current working directory. | |
| timeout_seconds | No | Max execution time in seconds (default 600 = 10 minutes). | |
| include_git_diff | No | Include git status and diff statistics of files modified during execution. |