delegate_claude
Runs coding or file tasks on a Claude worker with configurable read/edit/auto permissions, model choice, allowed commands, budgets, timeouts, and resumable sessions for controlled delegation.
Instructions
Run a task on the Claude worker account (claude -p). permission_mode: 'read' (default: read files and run read-only shell commands), 'edit' (also edit files; no other commands), 'auto' (edit and run commands that pass Claude Code's safety classifier). model: '' (worker default), 'haiku', 'sonnet', 'opus'. allowed_commands: comma-separated command prefixes the worker may run, e.g. 'dotnet test,git diff'. resume_session_id continues an earlier worker session; prompt_file reads the prompt from a file.
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_claude"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| model | No | ||
| effort | No | ||
| prompt | Yes | ||
| prompt_file | No | ||
| max_budget_usd | No | ||
| permission_mode | No | read | |
| timeout_seconds | No | ||
| allowed_commands | No | ||
| resume_session_id | No |