Skip to main content
The Notion resource exposes a Notion workspace as a virtual filesystem mounted at a prefix such as /notion/. For API key setup, see Notion Setup.

Config

Filesystem Layout

Example:
The hierarchy mirrors Notion’s page tree. Each page directory contains a page.json file with the page metadata and content. Child pages appear as nested directories. page.json carries the page metadata (page_id, title, url, timestamps, parent_type/parent_id, created_by/last_edited_by), a markdown field with the page body rendered as Markdown, and the raw blocks. Blocks with children embed them recursively under a children key, and the Markdown renders nested blocks with indentation.

Cache

Uses IndexCacheStore for page metadata. No separate content cache - file content caching is handled by the workspace IOResult mechanism.

Example

Shell Commands

Standard commands available on the mounted Notion tree: Resource-specific commands:

notion-page-create

Create a new page under a parent page. Prints the new page normalized as JSON. In the TypeScript SDK this command takes --parent <parent-path> and --title "title" instead of a raw --json body.

notion-block-append

Append content blocks to an existing page. Prints the refreshed page as JSON.

notion-comment-add

Add a comment to a page. Prints the created comment as JSON. Search pages with the Notion search API.