spawn_agent
Create a new agent by specifying a role and system prompt, with optional tool definitions. Add it to an orchestration workflow to assign asynchronous tasks and monitor results.
Instructions
Spawn a new agent with the given role and system prompt
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_name": "<role_name>",
"system_prompt": "<system_prompt>"
},
"name": "spawn_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tools | No | Optional list of tool definitions (OpenAI format) to make available to the agent | |
| role_name | Yes | Role name (e.g., 'coder') | |
| system_prompt | Yes | System prompt for the agent |