Run general-purpose Antigravity sub-agent task
general_taskDelegates a self-contained coding task to an editing sub-agent, blocking until finished and returning a report with status, usage and touched files. Supports resumed threads.
Instructions
Delegate coding task to agy sub-agent (accept-edits mode, may edit files). Prompt must be self-contained. Blocks until finished, returning report (status, response, usage, files_touched, transcript paths). Default effort: medium. background: true returns handle immediately (collect with watch_task). conversation_id resumes earlier thread. Headless runs auto-deny gated tools (in denied_actions; auto_approve skips).
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": "general_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Task cwd (defaults to server cwd). | |
| agent | No | Agent profile (see list_agents). | |
| model | No | Model (e.g. gemini-3.8-flash). Tier-carrying id (e.g. gemini-3.8-flash-high) encodes tier and wins over effort; pairing with different effort is refused locally. | |
| effort | No | Effort: low|medium|high (bare models; tier-carrying ids win). | |
| prompt | Yes | Self-contained task prompt for sub-agent. | |
| project | No | Project ID or name. | |
| sandbox | No | Terminal sandbox flag (--sandbox). | |
| add_dirs | No | Extra workspace dirs (--add-dir). | |
| background | No | Run in background; collect with watch_task. Emits no progress notifications. | |
| edit_scope | No | Allowed edit paths; out-of-scope edits flag in scope_violations. | |
| timeout_ms | No | Idle timeout in ms (0..3600000; 0 disables; default 900000). | |
| auto_approve | No | Pass --dangerously-skip-permissions to avoid auto-denying tools. Pair with sandbox. | |
| conversation_id | No | Existing conversation ID to resume. |