claude_code_execute_async
Execute a Claude Code task asynchronously in the background, returning a task ID so you can continue working and retrieve results later.
Instructions
Start a Claude Code task in the background and return immediately with a task_id. Use claude_code_check_result to retrieve the result later. This allows you to continue working while Claude Code runs.
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": "claude_code_execute_async"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model to use (e.g., "sonnet", "opus", "haiku") | |
| prompt | Yes | The task prompt for Claude Code to execute | |
| working_dir | No | Working directory for the task (default: current directory) | |
| output_format | No | Output format: "text" (default), "json", or "stream-json" | text |
| additional_args | No | Additional CLI arguments to pass to Claude Code | |
| skip_permissions | No | Skip permission checks for automation (default: true) |