name: notion-tools description: Use for tasks that read or modify Notion pages, data sources, or blocks via the Notion API. homepage: https://developers.notion.com metadata: {"clawdbot":{"emoji":"📝"}}
Use 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: - Finding a page, database, or data source in a Notion workspace - Reading page properties or page block content - Creating pages inside an existing database - Querying a data source with filters or sorts - Updating page properties - Trashing or restoring a page - Appending block content to a page
Do not use this skill for: - Changing Notion UI-only settings such as saved views, view filters, or layout configuration - Tasks that require browser automation instead of the public API
Before making requests, confirm:
- Prefer NOTION_KEY if the runtime already provides it
- If NOTION_KEY is unset in a local shell workflow, optionally load it from ~/.config/notion/api_key
- The target page or database has been shared with the integration
- The caller understands that this skill assumes Notion-Version: 2025-09-03
If the environment is not ready, read references/setup.md.
Always: - Start with search unless the user already provided a verified page ID or data source ID - Read before writing when modifying an existing page, block tree, or database-backed item - Inspect the live schema before creating or updating page properties in a database - Keep secrets out of output; never print the full API key back to the user - Read secrets only when needed to make a Notion API request, not during unrelated planning or explanation
Do not:
- Assume a property named Name, Status, or Date exists without checking
- Assume a database ID and a data source ID are interchangeable
- Overwrite page content when the task only requires appending blocks
Use 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 parents
- data_source_id for querying via /v1/data_sources/{id}/query
See references/examples.md for the search request template.
Read the current object before writing:
- GET /v1/pages/{page_id} for page properties
- GET /v1/blocks/{page_id}/children for page content
- GET /v1/data_sources/{data_source_id} for schema inspection
See references/examples.md for request templates.
Common write paths:
- POST /v1/pages to create a page in an existing database
- PATCH /v1/pages/{page_id} to update page properties
- PATCH /v1/pages/{page_id} with in_trash: true|false to trash or restore a page
- PATCH /v1/blocks/{page_id}/children to append blocks
Before 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 payloads
- references/property-patterns.md for common property value shapes
- references/blocks.md for equation blocks, inline code, code blocks, and table-cell formatting limits
Use /v1/data_sources/{data_source_id}/query for filters, sorts, and pagination. If results are paginated, continue with start_cursor from the previous response.
小蔥技能7w4.net有更新,你可以訪問看下。
See references/examples.md for query payloads.
This skill assumes Notion-Version: 2025-09-03.
Important version-specific behavior:
- Databases are queried through /v1/data_sources/{data_source_id}/query
- Page creation still uses parent.database_id
- Search results may expose a data source object instead of older database terminology
- Page responses may include both parent.database_id and parent.data_source_id
- Page deletion through the API is a trash operation via in_trash, not a permanent delete
If 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這個 Skill 質量不錯,能有效幫助使用者通過 Notion API 完成頁面管理、資料庫查詢等常見任務。文件結構清晰,示例豐富,故障排查指南實用。不足之處是主要面向命令列使用者,對程式設計經驗較少的人有一定門檻;另外複雜操作場景的說明不夠詳細。整體而言是一個可靠實用的 Notion 操作工具。