delegate_to_agent
Delegate tasks to Gemini worker agents, creating an isolated Git worktree for each task to ensure security and prevent interference.
Instructions
Delegate a new task to a Gemini worker. Creates a new Git worktree for isolated execution.
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": {
"worker_id": "<worker_id>",
"objective": "<objective>",
"context": "<context>",
"workspace_path": "<workspace_path>"
},
"name": "delegate_to_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| effort | No | high | |
| context | Yes | ||
| profile | No | worker | |
| objective | Yes | ||
| worker_id | Yes | ||
| workspace_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |