update_playbook
Update specific fields of an existing playbook to refine triggers, instructions, sources, or tools while preserving untouched edits; references and tools require full replacement lists.
Instructions
Change fields of an existing playbook. Prefer this over create_playbook whenever one already nearly covers the case — two overlapping playbooks are worse than one good one. Use it to pin a source that turned out to matter, to fold in a correction the user just made, or to sharpen a when line that was matching too broadly. Only the fields you pass are touched, so hand edits the user made in the editor survive. references and tools REPLACE the existing list, so send the full list you want.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"workspace": "<workspace>",
"playbook": "<playbook>"
},
"name": "update_playbook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| when | No | New one-line trigger | |
| title | No | New title (the filename deliberately does not change) | |
| tools | No | Full replacement list of tool names | |
| library | No | Optional library id, title or path to disambiguate a repeated title | |
| playbook | Yes | Playbook id, title or path (from list_playbooks) | |
| workspace | Yes | Workspace path/name | |
| references | No | Full replacement list of doc: links | |
| instructions | No | New markdown body (replaces the whole body) |