export_section
Export every page in a OneNote section to local Markdown, HTML, text, JSON, or PDF files, either one file per page or combined into a single file.
Instructions
Export every page in a section to local files as Markdown, HTML, plain text, JSON or PDF. By default each page gets its own file in a folder named after the section (with an index for markdown/html); combine=true writes one file with all pages. Pages blocked by the guardrail are left out.
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": {
"format": "<format>"
},
"name": "export_section"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | Yes | markdown, html, text, json or pdf (pdf needs Chrome, Edge, Chromium or Brave installed) | |
| combine | No | One file for the whole section instead of one per page | |
| section | No | Section name | |
| notebook | No | Notebook name | |
| outputDir | No | Folder to create the export in. Defaults to ONENOTE_EXPORT_DIR | |
| 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. | |
| sectionId | No | Section id (takes precedence over names) | |
| sectionGroup | No | Section group name, to pick a section inside a group |