Update Agent
agent_update · Tools · Agents
Change an agent role's instructions, runtime settings, memory, or run budget
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
agent_id | string | Yes | Agent id from agent_list. Do not invent it. |
compress_history | boolean | No | Whether a session grown too long compresses its dropped history into images of its text (true) or summarises it (false). Only some models support images; others summarise. Omission leaves unchanged. |
custom_model | object | No | LLM override. Null restores inheritance; omission leaves unchanged. |
disabled_tool_groups | string[] | No | Keys of default or workspace tool groups this agent does not have, stated whole. Omission leaves unchanged. |
fallback_models | object[] | No | LLM models tried in order when this role's model cannot answer, stated whole; replaces the shared fallback models, and an empty list means none. Null restores inheritance; omission leaves unchanged. |
max_turns | integer | No | How many turns one run may take. Omit to leave it. |
memory_recall | object | object | No | The memory namespaces each message recalls from: all of them (including ones created later), only the listed ones, or null for no recall. Omission leaves unchanged. |
name | string | No | What this role is called, across every session of it. Not your own name: that is your session's title. Omit to leave it. |
system_prompt | string | No | The role: what this agent is for and how it works. Omit to leave it. |
temperature | number | No | Sampling temperature; null puts it back to the model's own. Omit to leave it. |
tool_selection | object[] | No | Tool groups added to this agent, stated whole: replaces every addition. Empty clears additions, not default or workspace tools; omission leaves unchanged. Not with tool_selection_edits. |
tool_selection_edits | object | object | object[] | No | Changes to single added groups, applied in order; ids are those agent_read shows, and all resolve against that read. Not with tool_selection. |
voice | string | No | Voice id this role speaks its replies in. Null restores inheritance; omission leaves unchanged. |