page_patch
Modify part of an existing page without rewriting it: apply ordered, atomic HTML edits that fail cleanly if a match diverges, so you can update content safely.
Instructions
Change part of an existing Scribe page (open or closed) without rewriting it; does not create pages or change page state. Edits apply in order and atomically: if one fails, nothing changes and the error shows where the stored HTML diverged. Match the body you wrote, not the wrapper Scribe adds around a fragment. For large pages, find the spot with page_grep or a page_read window first. Focuses the tab unless background is true. HTML changes may return a short problems list from the first render; line uses page_read numbering. A timeout omits problems. Details: scribe_docs "Patch an existing page".
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "page_patch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Tab id, e.g. t_ab12cd34. | |
| key | No | Page key, e.g. scribe:sprint-notes (the scribe: prefix is optional). | |
| edits | No | Edits in order, each on the result of the last. Line numbers shift with earlier edits: list line edits bottom to top and pass expectedRevision from the read you numbered them from. Refused on template-bound pages. | |
| title | No | New tab title; can be sent alone, also for a template-bound page. Ignored for 24h after the user renamed the page (titleKept: true). | |
| replyTo | No | Where the page's scribe.reply goes on submit, as in page_show. null clears it. | |
| htmlPath | No | Local HTML file that replaces the whole page (a page_read toFile checkout you edited), keeping title, state and events. Instead of edits. | |
| background | No | Don't focus the tab or bring Scribe forward; the change shows as an unread blip. | |
| expectedRevision | No | Refuse the change if the page's revision is no longer this one (from page_read or the last page_patch). |