add_playbooks
Add SOPs (playbooks) to an agent. Each playbook defines an intent, specialist prompt, and optional tools. Edits are batched into a draft; publish to activate.
Instructions
Add one or more playbooks (SOPs) to a multi_agents agent. Each playbook = an intent (name + description the classifier routes on) + a specialist prompt + optional scoped tools and an auth level. Edits land on a draft (auto-created from the active version when draft_id is omitted) — use publish_draft to go live. The first enabled playbook becomes the router fallback automatically if none is set. Names and intent names must be unique on the agent (case-insensitive, archived included).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. | |
| playbooks | Yes | The SOPs to add (batch them — one draft write) |