export_page
Exports a OneNote page and its images and attachments to a local Markdown, HTML, text, JSON, or PDF file for backup, sharing, or offline access.
Instructions
Export a page to a local file as Markdown, HTML, plain text, JSON or PDF, with its images and attached files.
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>",
"format": "<format>"
},
"name": "export_page"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | Yes | markdown, html, text, json or pdf (pdf needs Chrome, Edge, Chromium or Brave installed) | |
| pageId | Yes | ||
| resources | No | Images/files: download (default; saved in a folder next to the export), inline (embedded as data: URIs), or none. text ignores this; pdf always embeds. | |
| outputPath | No | File (or existing folder) to write. Defaults to ONENOTE_EXPORT_DIR/<page title>.<ext>, never overwriting |