Create Agent
agent_create · Tools · Agents
Define a reusable agent role in the team: a name and the prompt that states the role
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
compress_history | boolean | No | When a session grows too long, compress its dropped history into images of its text instead of summarising it. Only some models support it; others summarise. Omit to summarise. |
custom_model | object | No | LLM override. Omit or null to inherit the plugin model. |
disabled_tool_groups | string[] | No | Keys of default or workspace tool groups the new agent does not get, from tool_groups. |
fallback_models | object[] | No | LLM models tried in order when this role's model cannot answer; replaces the plugin's fallback models, and an empty list means none. Omit or null to inherit them. |
max_turns | integer | No | How many turns one run of this agent may take before it returns. Omit it unless the work needs a wider or tighter budget than the default. |
memory_recall | object | object | No | The memory namespaces each message to this agent recalls from: all of them (including ones created later), only the listed ones, or null for no recall. Omit to recall from all. |
name | string | Yes | What this agent is called. Short, and distinct from the roles agent_list already shows. |
system_prompt | string | Yes | The role: its specialization, responsibilities, and how it should work. It is read fresh on every turn, so it can be rewritten later without disturbing live sessions. |
temperature | number | No | Sampling temperature. Use null to leave the model's own. |
tool_selection | object[] | No | Tool groups added beside the default and workspace groups. Only a person can add tools: from an agent this must be omitted or empty, and a missing group is asked for with request_tool. |
voice | string | No | Voice id this role speaks its replies in. Omit or null to inherit the plugin voice. |