update_page
Edit a OneNote page in place by appending, prepending, inserting, or replacing content in its body, title, or specific elements; all changes in one call succeed or fail together.
Instructions
Edit a page in place. Each change targets 'body', 'title', or an element by '#' or its generated id (from read_page with includeIds=true). Actions: append (end of target), prepend (start of target), insert (before/after target), replace (swap target; use target 'title' + replace to rename the page). Example: tick a to-do with {target:'#task1', action:'replace', content:'Done'}. All changes in one call succeed or fail together. A version of the page is saved first (see list_page_versions).
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": {
"pageId": "<pageId>",
"changes": "<changes>"
},
"name": "update_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | Yes | ||
| changes | Yes | ||
| attachments | No | Local images/files to embed. Reference them in HTML as <img src="name:file1"/> or <object data="name:file1" data-attachment="report.pdf" type="application/pdf"/>. Unreferenced parts are added at the end automatically. |