submit_agent
Spawn an autonomous agent to execute complex coding tasks in Antigravity IDE, returning a task ID instantly for parallel, non-blocking delegation.
Instructions
Spawn an autonomous agent in Antigravity IDE. Returns a taskId INSTANTLY (does NOT wait for completion).
The agent runs as a new Cascade conversation with full codebase access — it can read files, grep, run terminal commands, and edit files. It operates fully autonomously without asking questions. Each agent consumes significant resources (new conversation + model tokens), so only delegate tasks that provide real value.
ALWAYS use this 2-step pattern: Step 1: Call submit_agent N times (each returns a taskId in ~1 second) Step 2: Call get_agent_results([taskId1, taskId2, ...]) to wait for ALL results at once
All N agents run in parallel. Write self-contained prompts — the agent has ZERO prior context.
WHEN TO USE (high-value tasks): ✅ Implement a scoped feature or bug fix (write code, run tests) ✅ Research/summarize a module, architecture, or large codebase area ✅ Run a build/test suite and report results ✅ Generate boilerplate, migrations, or repetitive code ✅ Perform multi-step analysis that requires reasoning
WHEN NOT TO USE (do it yourself — faster & cheaper): ❌ Read or view files ❌ Simple grep/search operations ❌ Single-file edits that take < 30 seconds ❌ Tasks that just collect information without transforming it
Models: gemini-high (default), gemini-low, gemini-flash, claude-opus, claude-sonnet, gpt-120b.
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": {
"task": "<task>"
},
"name": "submit_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | Clear task description for the sub-agent to execute autonomously | |
| model | No | Model to use. Aliases: gemini-high (default), gemini-low, gemini-flash, claude-opus, claude-sonnet, gpt-120b. | |
| timeout | No | Max wait time in seconds (default: 600) | |
| taskName | No | Short task name (3-5 words) for the conversation title | |
| workspace | No | Workspace root path | |
| maxReplies | No | Max auto-replies if agent asks questions (default: 3) |