List Pages
list_pagesList OneNote pages in a section or entire notebook to browse content and retrieve page IDs without a search term.
Instructions
Lists pages in a OneNote section, or across every section of a notebook, without needing a search term. Use it to browse what exists and get page IDs. Note: there is no account-wide page listing — Graph rejects it on accounts with many sections, so scope by section or notebook.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_pages"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum pages to return (default 50, max 500). | |
| order | No | Sort direction (default desc — newest or Z→A first). | |
| orderBy | No | Sort field (default lastModified). | |
| sectionId | No | Section ID to list pages from. Provide this or notebookId. | |
| notebookId | No | Notebook ID; lists pages across every section in that notebook (including sections nested in section groups). Provide this or sectionId. |