delegate
Sends heavy or out-of-scope tasks to the Antigravity CLI; read-only by default, with optional write and sandbox controls plus denied-action notes.
Instructions
Raw delegation to the Antigravity CLI for heavy tasks that don't fit the other tools. Read-only by default; pass write: true to let agy edit files, sandbox: true to confine it. Anything it was refused comes back as a denied-actions note.
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": "delegate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Absolute path to the working directory / project root. Defaults to the server's cwd. | |
| dirs | No | Extra directories to add to agy's workspace, for cross-repo or worktree-vs-base analysis. | |
| model | No | Override the model. Accepts a display name ("Gemini 4 Neon (High)"), an id ("gemini-4-neon-high"), or a family selector ("gemini-neon@latest-high"). Normally omit — the tool routes automatically. | |
| write | No | Allow file edits and command execution. Off by default. | |
| effort | No | Reasoning tier supported by the selected model in `agy models`. A family selector can choose its listed sibling at this tier. An exact model ID or label fixes the variant: a conflicting effort is rejected. xhigh/max require a listed variant. | |
| prompt | Yes | The complete task prompt for agy. | |
| schema | No | JSON Schema (as a string) constraining the answer. Returns structuredContent as well as text. Costs noticeably more latency and tokens, so use it only when you will parse the result. | |
| sandbox | No | Run agy with terminal restrictions enabled. | |
| slash_commands | No | Let agy expand your slash commands and skills into the prompt. Off by default: a hostile file in the workspace can otherwise steer the delegated model. |