Install
openclaw skills install notion-toolsUse for tasks that read or modify Notion pages, data sources, or blocks via the Notion API.
openclaw skills install notion-toolsUse this skill when the user wants to read or modify Notion content through the Notion API.
This skill is for operational API work, not general product explanation. Prefer the workflow below instead of inventing request shapes from memory.
Use this skill for:
Do not use this skill for:
Before making requests, confirm:
NOTION_KEY if the runtime already provides itNOTION_KEY is unset in a local shell workflow, optionally load it from ~/.config/notion/api_keyNotion-Version: 2025-09-03If the environment is not ready, read references/setup.md.
Always:
Do not:
Name, Status, or Date exists without checkingUse search first for pages and data sources. If the result is a database-like object, record both IDs when present:
id or database_id for page creation parentsdata_source_id for querying via /v1/data_sources/{id}/querySee references/examples.md for the search request template.
Read the current object before writing:
GET /v1/pages/{page_id} for page propertiesGET /v1/blocks/{page_id}/children for page contentGET /v1/data_sources/{data_source_id} for schema inspectionSee references/examples.md for request templates.
Common write paths:
POST /v1/pages to create a page in an existing databasePATCH /v1/pages/{page_id} to update page propertiesPATCH /v1/pages/{page_id} with in_trash: true|false to trash or restore a pagePATCH /v1/blocks/{page_id}/children to append blocksBefore writing properties, confirm the exact property names and types from the live schema. Do not describe trashing a page as permanent deletion; this flow moves the page into or out of trash.
See:
references/examples.md for create, update, trash, restore, append, and query payloadsreferences/property-patterns.md for common property value shapesreferences/blocks.md for equation blocks, inline code, code blocks, and table-cell formatting limitsUse /v1/data_sources/{data_source_id}/query for filters, sorts, and pagination. If results are paginated, continue with start_cursor from the previous response.
See references/examples.md for query payloads.
This skill assumes Notion-Version: 2025-09-03.
Important version-specific behavior:
/v1/data_sources/{data_source_id}/queryparent.database_idparent.database_id and parent.data_source_idin_trash, not a permanent deleteIf a request fails, check auth, sharing, object IDs, and schema mismatches before changing the payload. For common failure modes, read references/troubleshooting.md.
NOTION_KEY over reading a local token file