Update a OneNote page
onenote_update_pageAdd or modify content on an existing OneNote page: append or prepend text, insert or replace targeted elements, and rename pages by replacing the title.
Instructions
Adds or changes content on an existing page. Default appends to the end of the page body. action=prepend adds to the top; insert/replace need a target element id from onenote_get_page with format=html_with_ids (replace overwrites that element). To rename a page use target=title with action=replace and the new title as content. Images: use
for local screenshots, for web images, or
to copy image N from another OneNote page into a report. Web image URLs are not accepted here.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | append | |
| target | No | body | title | a generated element id (e.g. p:{...}{40}) | #data-id | body |
| content | Yes | Content to add, or the replacement (plain text when target=title). | |
| page_id | Yes | ||
| position | No | For append: first/last child. For insert: before/after the target. | |
| content_format | No | Format of `content`. Markdown supports headings, lists, task lists, tables, bold/italic, links, code and images. | markdown |