notion-pages

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Notion Pages

Notion页面

Search, read, create, and edit Notion pages.
搜索、读取、创建和编辑Notion页面。

Prerequisites

前提条件

Run
notion-connect --check
first. If not configured, load
notion-connect/SKILL.md
.
先运行
notion-connect --check
。如果未配置,请查看
notion-connect/SKILL.md

Commands

命令

Search pages

搜索页面

bash
python3 pages/scripts/notion_pages.py search "meeting notes"
python3 pages/scripts/notion_pages.py search "Q2 planning" --limit 5
bash
python3 pages/scripts/notion_pages.py search "meeting notes"
python3 pages/scripts/notion_pages.py search "Q2 planning" --limit 5

Get page content

获取页面内容

bash
python3 pages/scripts/notion_pages.py get <page-id>
bash
python3 pages/scripts/notion_pages.py get <page-id>

Create a new page

创建新页面

bash
python3 pages/scripts/notion_pages.py create --parent <page-id-or-database-id> --title "Meeting Notes" --content "## Attendees\n- Alice\n- Bob"
bash
python3 pages/scripts/notion_pages.py create --parent <page-id-or-database-id> --title "Meeting Notes" --content "## Attendees\n- Alice\n- Bob"

Update page properties

更新页面属性

bash
python3 pages/scripts/notion_pages.py update <page-id> --title "New Title"
bash
python3 pages/scripts/notion_pages.py update <page-id> --title "New Title"

Append content to existing page

向现有页面追加内容

bash
python3 pages/scripts/notion_pages.py append <page-id> --content "## Action Items\n- Follow up with client"
bash
python3 pages/scripts/notion_pages.py append <page-id> --content "## Action Items\n- Follow up with client"

Output

输出

All commands output JSON to stdout. Page content is returned as markdown-like text extracted from Notion blocks.
所有命令都会向标准输出(stdout)输出JSON。页面内容会以从Notion块提取的类Markdown文本形式返回。

Follow-Up Questions

后续问题示例

  • "Search for pages about product roadmap"
  • "Create a new meeting notes page"
  • "Append action items to today's meeting page"
  • "Read the content of my project brief"
  • "搜索关于产品路线图的页面"
  • "创建一个新的会议纪要页面"
  • "向今日会议页面追加行动项"
  • "读取我的项目简报页面内容"