spawn
Create a Claude instance with role, context, and working directory. Manage hierarchical relationships and workspace isolation for effective orchestration.
Instructions
Spawn a new Claude instance with role and context
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": {
"role": "<role>",
"workDir": "<workDir>",
"context": "<context>"
},
"name": "spawn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | Role of the instance to create | |
| workDir | Yes | Working directory for the instance | |
| context | Yes | CLAUDE.md content for the instance | |
| parentId | No | ID of parent instance for hierarchy tracking | |
| workspaceMode | No | Workspace mode (isolated or shared for managers) |