update_playbook
Edit a playbook's prompt, intent, auth level, tools, or archive status. Changes are saved as a draft and require publishing to go live.
Instructions
Edit one playbook (SOP) on a multi_agents agent: change its prompt, intent, auth level, tools, or archive/restore it (enabled=false/true — playbooks are archived, never deleted, so call history stays resolvable). Edits land on a draft (auto-created when draft_id omitted); publish_draft to go live. The router fallback cannot be archived — repoint it first via configure_playbooks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New customer-facing label | |
| tools | No | REPLACES the playbook's API-call tools. end_call/transfer_call are agent-level config (configure_call_actions), never playbook tools — any legacy ones embedded here are dropped on write. | |
| prompt | No | New specialist prompt | |
| enabled | No | false = archive (never routed to), true = restore | |
| agent_id | Yes | The multi_agents agent ID | |
| draft_id | No | Draft to edit. Omit to start a NEW draft from the active version (its id is returned — pass it to subsequent playbooks calls so all edits land on the same draft). Changes go live only after publish_draft. | |
| auth_level | No | Identity proof required before this playbook's own tools may run: none | weak (caller recognition — shared weak auth tools must succeed) | strong (full identity proof — weak AND strong auth tools must succeed). Default none. | |
| intent_name | No | New intent label (must stay unique on the agent) | |
| playbook_id | Yes | The playbook id to edit (see get_playbooks) | |
| knowledge_base_id | No | Per-playbook knowledge base ID ('' to clear) | |
| intent_description | No | New intent description for the classifier |