Skip to main content
OneNote notebooks become a folder tree, read only: each notebook, section group and section a folder, and each page the HTML OneNote renders for it.

Setup

The mount needs a delegated Microsoft Graph access token with Notes.Read, which reads the signed-in user’s notebooks. OneNote’s Graph API refuses app-only tokens since March 31, 2025.
The fastest way to try it. The token lasts about an hour.
  1. Open Graph Explorer and sign in.
  2. Run GET /me/onenote/notebooks and consent to Notes.Read when asked.
  3. Open the Access token tab and copy the token.
A delegated token from an app registration. The first sign-in is interactive, so this is a development bootstrap, not an unattended credential.
  1. In the Microsoft Entra admin center, go to Entra ID > App registrations > New registration.
  2. Under Authentication, set Allow public client flows to Yes.
  3. Under API permissions > Microsoft Graph > Delegated permissions, add Notes.Read.
  4. Request a device code with the Application (client) ID and the Directory (tenant) ID from the registration’s Overview, open https://microsoft.com/devicelogin and enter the user_code it prints. A registration that accepts accounts in any tenant can use common for the tenant:
  5. After signing in, exchange the device_code for tokens:
Mirage does not refresh Microsoft tokens itself: a long-running program passes a callable as access_token that returns a fresh token.

Connect

workspace.yaml

Layout

  • A notebook, a section group and a section are each a folder named by its display name; section groups nest to any depth.
  • A page file is the HTML OneNote answers for the page.
  • The part after __ is the page’s Graph id.

Sample runs

The mount is read-only.

SDK guides

Python

Every config field, the layout and the VFS.md.

TypeScript

Every config field, the layout and the VFS.md.