Patch page section
patch_pageEdit a single section of a wiki page without rewriting the entire document. Use a heading path to target the section and apply append, prepend, replace, or delete operations.
Instructions
Surgically edit ONE section of a page instead of rewriting the whole body (editor+). First call get_page format:"map" to see the section paths, then patch the target. Cheaper and safer than update_page on a long page — it never touches the rest of the document. Snapshots a revision like any edit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | page id to patch | |
| target | Yes | the section to edit, by its heading path from get_page format:"map" (e.g. 'Setup' or 'Deploy > Production'); the bare heading text also resolves | |
| content | No | markdown to insert; omit for delete | |
| operation | Yes | append (add to the end of the section's body), prepend (add right under the heading), replace (swap the section's body, heading kept), or delete (remove the heading and its body) | |
| idempotency_key | No | optional client-generated key; a retry with the same key returns the original result instead of re-applying the patch |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes |