Manage Notion notes, pages, and data sources with a JSON-first CLI for search, read/export, write/import, append, and move operations. Use when working with Notion, organising notes, moving pages, triaging an inbox, or reading/writing page content.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install notion-api-automation或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install notion-api-automation⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/notion-api-automation/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: notion description: Manage Notion notes, pages, and data sources with a JSON-first CLI for search, read/export, write/import, append, and move operations. Use when working with Notion, organising notes, moving pages, triaging an inbox, or reading/writing page content. metadata: {"openclaw":{"emoji":"🗂️","requires":{"bins":["node"],"env":["NOTION_API_KEY"]},"primaryEnv":"NOTION_API_KEY","homepage":"https://developers.notion.com/reference/intro"}} user-invocable: true ---
Prefer deterministic scripts over ad‑hoc API calls:
This skill ships a single entrypoint CLI: {baseDir}/scripts/notionctl.mjs.
Notion-Version: 2025-09-03 for every request. Retry-After. data_source_id, not database_id.This skill expects NOTION_API_KEY to be present in the environment.
If you need a fallback for local dev, the CLI also checks:
NOTION_TOKEN, NOTION_API_TOKEN~/.config/notion/api_keynode {baseDir}/scripts/notionctl.mjs whoami
Search pages (title match):
node {baseDir}/scripts/notionctl.mjs search --query "meeting notes" --type page
Search data sources (title match is against the database container title in 2025-09-03):
node {baseDir}/scripts/notionctl.mjs search --query "Inbox" --type data_source
node {baseDir}/scripts/notionctl.mjs export-md --page "<page-id-or-url>"
Under a parent page:
node {baseDir}/scripts/notionctl.mjs create-md --parent-page "<page-id-or-url>" --title "Idea" --md "# Idea\n\nWrite it up..."
Under a data source (database row):
node {baseDir}/scripts/notionctl.mjs create-md --parent-data-source "<data-source-id-or-url>" --title "Idea" --md "# Idea\n\nWrite it up..."
Optional: set properties when parent is a data source:
node {baseDir}/scripts/notionctl.mjs create-md \
--parent-data-source "<data-source-id>" \
--title "Inbox: call plumber" \
--md "- [ ] Call plumber\n- [ ] Ask for quote" \
--set "Status=Inbox" --set "Tags=home,admin" --set "Due=2026-02-03"
node {baseDir}/scripts/notionctl.mjs append-md --page "<page-id-or-url>" --md "## Update\n\nAdded more detail."
Move under another page:
node {baseDir}/scripts/notionctl.mjs move --page "<page-id-or-url>" --to-page "<parent-page-id-or-url>"
Move into a database (data source):
node {baseDir}/scripts/notionctl.mjs move --page "<page-id-or-url>" --to-data-source "<data-source-id-or-url>"
- Inbox as a data source (recommended for triage), or - Inbox as a page containing child pages.
create-md with --parent-data-source or --parent-page.If your inbox is a page with child pages:
node {baseDir}/scripts/notionctl.mjs list-child-pages --page "<inbox-page-id-or-url>"
node {baseDir}/scripts/notionctl.mjs triage --inbox-page "<inbox-page-id>" --rules "{baseDir}/assets/triage-rules.example.json"
node {baseDir}/scripts/notionctl.mjs triage --inbox-page "<inbox-page-id>" --rules "{baseDir}/assets/triage-rules.example.json" --apply
1) export-md to read content 2) decide changes 3) append-md / create-md / move
--dry-run or omit --apply, cap scope with --limit, and only then apply.Retry-After; reduce concurrency.安装 Notion API 后,可以对 AI 说这些话来触发它
Help me get started with Notion API
Explains what Notion API does, walks through the setup, and runs a quick demo based on your current project
Use Notion API to manage Notion notes, pages, and data sources with a JSON-first CLI ...
Invokes Notion API with the right parameters and returns the result directly in the conversation
What can I do with Notion API in my documents & notes workflow?
Lists the top use cases for Notion API, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/notion-api-automation/ 目录(个人级,所有项目可用),或 .claude/skills/notion-api-automation/(项目级)。重启 AI 客户端后,用 /notion-api-automation 主动调用,或让 AI 根据上下文自动发现并使用。
Notion API 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Notion API 可免费安装使用。请查阅仓库了解许可证信息。
Manage Notion notes, pages, and data sources with a JSON-first CLI for search, read/export, write/import, append, and move operations. Use when working with Notion, organising notes, moving pages, triaging an inbox, or reading/writing page content.
Notion API 属于「Documents & Notes」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my documents & notes tasks using Notion API
Identifies repetitive steps in your workflow and sets up Notion API to handle them automatically