Get page content
getPageRead a OneNote page by title or ID and get its content as readable text, including tables, image captions, and PDF text. Optionally return raw HTML.
Instructions
Read one page. Returns readable text including tables (as Markdown), image captions, and the text of any attached PDFs. Pass format="html" for raw XHTML. If the result mentions an image or attachment whose text is unavailable, say so rather than treating the page as complete.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | Page TITLE (e.g. "AI Search") or ID. Titles are matched case-insensitively; if several pages share one you get the list back to choose from. You do NOT need to look up an ID first. | |
| format | No | "text" for readable Markdown-ish text (default), "html" for raw OneNote XHTML. | |
| section | No | Optional: narrow to one section when several pages share a title. | |
| maxImages | No | How many images to attach. Defaults to 2, because images are expensive: a screenshot costs roughly 1,300-4,000 tokens, often more than the page text. The result says how many more exist; raise this only when the user needs them. | |
| maxLength | No | Truncate content to this many characters. Defaults to 12000, which covers almost every real page. Raise it only if a page is reported as truncated and you need the rest. | |
| includeIds | No | Include OneNote element IDs, required for later PATCH operations. | |
| includeImages | No | Attach the page images so you can READ them yourself, which is how text inside a screenshot becomes available at all (Microsoft does not expose its OCR). LEAVE THIS UNSET normally: images cost 1,300-4,000 tokens each, so by default they are only sent when a page has too little text to answer from, and merely announced otherwise. Set true when the user asks to see them, or when the answer is plainly inside a picture. Set false to skip them entirely. | |
| readAttachments | No | Download embedded files and include their text. On by default. PDFs with a text layer are read in full; scanned PDFs and other file types are named but not opened. Set false to skip the download and read only the page itself. |