Update agent prompt
update_agent_promptRevise an agent's prompt section by section, merging your changes with existing sections or replacing the whole prompt. Fetch current section titles first to target edits accurately.
Instructions
Update an agent's prompt section by section. In the default 'merge' mode the tool reads the agent's current prompt, overwrites only the sections you name (matched by title), preserves every other section, and writes the complete section list back - the upstream API replaces the whole prompt, so the merge is what protects the sections you did not mention. Use mode='replace' to set the prompt to exactly the sections you supply, discarding the rest. Call get_agent first to see the existing section titles.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'merge' (default) keeps existing sections you did not name. 'replace' discards every section you did not supply. | merge |
| agent_id | Yes | The agent's UUID. | |
| sections | Yes | Sections to write. Each replaces the full content of the matching section. |