openclaw_spawn_agent
Delegate a task to a sub-agent by providing its ID and a task description. Optionally specify a model override.
Instructions
Spawn an OpenClaw sub-agent to perform a task
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": {
"agent_id": "<agent_id>",
"task": "<task>"
},
"name": "openclaw_spawn_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | Task description for the agent | |
| model | No | Optional model override for the agent | |
| agent_id | Yes | Agent identifier to spawn (e.g. "main", "dev") |