Create agents
create_agentsCreate multiple agents at once and save them. Returns the created agents with their new IDs. Prefer this over calling create_agent repeatedly when the plan needs more than one new agent — one tool call instead of many avoids context bloat and timeout risk. Each input item supports the same fields as create_agent plus a role string that is echoed back in the response so callers can key results by role.
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": {
"agents": "<agents>"
},
"name": "create_agents"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agents | Yes | Array of agent specs to create. Each item must include name, description, type, tools, system_prompt. Optional: role, model, repos, db_configs, memory. |