Create agent
create_agentCreate a new agent and save it. Returns the created agent with its new ID. Use type='conversational' for general-purpose agents, 'code' for agents that work with repos/files, 'browser' for an agent that works in websites in its own browser (its browser settings), 'delegate' for a Team agent: a lead whose members (delegate_agent_ids; empty = any agent) do the work, as a team in parallel (the default) or one at a time (team); its own tools are what its lead answers small questions with, usually none. Set tools=['all'] to give access to all tools, or list specific tool names.
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": {
"name": "<name>",
"description": "<description>",
"type": "<type>",
"tools": "<tools>",
"system_prompt": "<system_prompt>"
},
"name": "create_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name for the agent | |
| team | No | For a Team agent (type 'delegate') only: how its members work. Omit it and a new Team agent works as a team. {"mode": "team"}: members work in parallel on what its lead assigns, talking while they work; "one_at_a_time": the lead hands work to one member and waits. Optional: at_once (members working at once, default 3), task_budget (tasks in all, default 6), spend_limit_usd (per turn). | |
| type | Yes | Agent type | |
| model | No | Optional LLM model override (e.g. claude-opus-4-6, gemini-2.5-pro). Leave null for system default. | |
| repos | No | List of repo IDs (for code agents). Use list_repos to find IDs. | |
| tools | Yes | List of tool names, or ['all'] for all tools | |
| boards | No | Whether the agent posts to the board of the workflow it runs in: {"own": false} for an agent whose workflow was given a shared board to post to. Omit to keep the default (on). | |
| memory | No | true: the agent keeps what it learns across conversations and runs (remember, search_memory) and reads its memory's index every turn. For an agent that must recall people, preferences or past results; omit for one that starts fresh each time (the default). | |
| browser | No | For a Browser agent (type 'browser') only: where it may go and what it starts with. sites: hosts its pages may reach ('portal.example.com', or '*.example.com' for its subdomains; empty = any public site); sessions: kept sessions it starts signed in with, by id from list_browser_sessions or by site (the person's own; one per site); recordings: recording ids it may run by code; mode: 'read_only' (default) or 'co_drive' (it may type and send, with the person watching); action_budget: actions per task (1-200, default 40). Signing in and recording are a person's, in the app. | |
| knowledge | No | Knowledge base ids it answers from (from list_knowledge_bases; at most 10, active ones, while Knowledge is on): it can then search and read those bases. Omit for none. | |
| db_configs | No | List of DB config IDs (for agents needing database access). | |
| description | Yes | What this agent does | |
| tool_policy | No | When the agent must ask a person before a tool runs: {"tool:<name>": "confirm"} for each tool that books, pays, sends, posts or deletes. The plan's 'Asks you first' list says which. Omit for none. | |
| system_prompt | Yes | Detailed system instructions for the agent. Be thorough. | |
| delegate_agent_ids | No | For a Team agent: its members' agent IDs. Leave empty to allow any agent. |