Search pages
searchPagesFind OneNote pages by title, or search page content for full-text matches. Narrow results to a specific section to speed up the search.
Instructions
Find pages by title (fast — one request). Set searchContent=true to also scan page bodies. OneNote provides no server-side full-text search, so that fetches candidate pages; it runs them in parallel and stops early once enough matches are found, but it is still much slower than a title search. Pass section to narrow it dramatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | Text to search for. | |
| section | No | Limit the search to one section, given by name ("Ideas"), path ("Learn / Cooking"), or ID. Strongly recommended alongside searchContent, as it avoids fetching unrelated pages. | |
| scanLimit | No | Maximum pages to fetch when searchContent is true. Defaults to 30. Raise only if a search genuinely came back empty; each extra page costs time. | |
| searchContent | No | Also search page body text, not just titles. Slower. Defaults to false. |