Edit a Playbook Section
update_playbook_sectionReplaces or merges one content section (any except workflowRecipes) of a playbook the user owns and writes a new version. mode "replace" (default) sets the section; "merge" deep-merges objects and unions string arrays. baseVersion must equal the current version, otherwise the call returns a version conflict naming it; version (x.y.z, above the current one) replaces the default patch bump. The whole document is re-validated and re-scanned; acknowledgments for terms still present are kept unless ackMode is "replace". An unknown or not-owned id changes nothing. [Bearer scope: playbook:write]
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": {
"section": "<section>",
"value": "<value>",
"baseVersion": "<baseVersion>"
},
"name": "update_playbook_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Default 'replace'. 'merge' deep-merges plain objects and unions string arrays (case-insensitive dedupe); scalars take the incoming value. | |
| value | Yes | New section value (replace) or partial to merge in (merge). | |
| ackMode | No | Default 'merge' — preserve recorded acknowledgments for terms still present anywhere in the patched document (so a single-section edit can't silently drop acknowledgments and re-escalate sensitivity). 'replace' records only acknowledgedTerms. | |
| section | Yes | Section to patch. workflowRecipes is excluded — recipes have dedicated tools. | |
| version | No | Optional explicit target version (x.y.z, max 32 chars) — must be strictly greater than the current version (e.g. a 1.0.x → 1.1.0 minor bump to mark a meaningful change). Omit to auto-bump the patch component. | |
| dotfileId | No | Deprecated alias for `playbookId`. | |
| playbookId | No | Playbook id — see list_playbooks. (`dotfileId` is still accepted as a deprecated alias.) | |
| baseVersion | Yes | The currentVersion this edit was read against. Mismatch returns a version-conflict error naming the current version. | |
| sensitivity | No | Optional re-declaration of the playbook's sensitivity. Applied exactly, even below the stored level, when acknowledgedTerms covers every current sensitive-vocabulary match; otherwise the level rises or stays and privacyWarnings names the uncovered terms. The change is recorded in changeSummary. | |
| changeSummary | No | Optional PlaybookVersion change summary. | |
| acknowledgedTerms | No | Sensitive-vocabulary terms acknowledged so the write keeps the declared sensitivity; values shaped like secrets are still refused. With ackMode 'merge' (default) they add to recorded acknowledgments for terms still present; with 'replace' only these stay acknowledged. |