The catalogue/OneNote

OneNote

app.microsoft.onenote

Read, write, and search OneNote notebooks, sections, and pages

OAuth 2productivityRead the source↗
Version1.0.2
Categoryproductivity
AuthOAuth 2
Tools15
Transportstdio
LicenceMIT
01

What it does

The app, in its own words.

Microsoft OneNote automation — browse notebooks and sections, read and write pages as markdown, and search notes via the Microsoft Graph OneNote API.

onenotenotesnotebookmicrosoftoffice365markdown
02

Tools

15 tools the agent can call.

Every one is declared with typed parameters and returns structured results, so the host can render them instead of narrating them.

  • append-to-pageAdd content to an existing OneNote page without removing anything. Appends to the end of the page by default; pass a target element id from get-page-content (includeIDs: true) to add next to a specific element.
  • copy-page-to-sectionCopy a OneNote page into another section, including across notebooks. Waits for the copy to finish and returns the new page id.
  • create-notebookCreate a new OneNote notebook. Names may not contain ? * \ / : < > | ' " # and are limited to 50 characters.
  • create-pageCreate a OneNote page in a section. Content is markdown by default and is converted to the HTML OneNote stores.
  • create-sectionCreate a section inside a OneNote notebook. Names may not contain ? * \ / : < > | ' " # and are limited to 50 characters.
  • delete-pageDelete a OneNote page. The page goes to the notebook recycle bin, but this cannot be undone from here.
  • get-notebookGet one OneNote notebook by id, with its name, sharing state, and web URL.
  • get-pageGet one OneNote page by id: its title, timestamps, position, and parent section. Use get-page-content to read the page body.
  • get-page-contentRead the body of a OneNote page. Returns markdown by default. Set includeIDs to get the element ids that append-to-page and replace-page-content can target — that always returns HTML, because markdown cannot carry the ids.
  • list-notebooksList every OneNote notebook the signed-in account can open, including shared ones.
  • list-pagesList OneNote pages, newest first. Scoped to one section when sectionId is given, otherwise across every notebook. Returns metadata only — use get-page-content to read a page.
  • list-section-groupsList OneNote section groups — the folders that hold sections inside a notebook. Scoped to one notebook when notebookId is given.
  • list-sectionsList OneNote sections. Scoped to one notebook when notebookId is given, this returns only that notebook's top-level sections — sections nested inside a section group are not included. Omit notebookId to list every section the account can reach, section groups included.
  • replace-page-contentReplace the content of a OneNote page, or just its title. This overwrites what was there and cannot be undone — use append-to-page to add without removing.
  • search-pagesSearch OneNote pages by text. Results may not be exhaustive — OneNote search coverage varies by account type, and this falls back to matching page titles when full-text search is unavailable. Use list-pages to browse a section reliably.
03

Auth and permissions

What it asks for.

Declared in the manifest, in advance. The app cannot reach anything it did not ask for here.

Scopes

openidprofileemailoffline_accessUser.ReadNotes.ReadWrite.AllNotes.Create

System secrets

CLIENT_IDCLIENT_SECRETREDIRECT_URI

Installation secrets

ACCESS_TOKENREFRESH_TOKENEMAILEXPIRY_DATE

Reading further

The manifest and the source for OneNote live in the repository, alongside the other apps.

Read the source↗Back to the catalogue→

OneNote · Agent Apps