返回顶部
n

notion-workspace

Full Notion API skill — query databases, manage pages, append blocks, and search your entire workspace.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
98
下载量
0
收藏
概述
安装方式
版本历史

notion-workspace

# Notion Workspace Automate your Notion workspace from the command line. Query and update databases, create and archive pages, append rich content blocks, and search across your entire workspace — all via the official Notion API with a single integration token. ## Setup ```bash export NOTION_API_KEY="secret_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" export NOTION_DATABASE_ID="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" # optional default DB ``` Get your integration token: Notion → Settings → Connections → Develop or manage integrations → New integration. Then share your database/pages with that integration. ## Commands / Usage ```bash # ── DATABASES ─────────────────────────────────────────── # Query a database (uses NOTION_DATABASE_ID by default) python3 scripts/notion_workspace.py db-query python3 scripts/notion_workspace.py db-query --db-id "abc123..." # Query with filter python3 scripts/notion_workspace.py db-query --filter-prop "Status" --filter-value "In Progress" # Create a new entry (page) in a database python3 scripts/notion_workspace.py db-create --title "My Task" --props '{"Status": "To Do", "Priority": "High"}' # Update a database entry python3 scripts/notion_workspace.py db-update --page-id "def456..." --props '{"Status": "Done"}' # ── PAGES ─────────────────────────────────────────────── # Create a standalone page (under a parent page) python3 scripts/notion_workspace.py page-create --parent-id "ghi789..." --title "Meeting Notes" --content "Today we discussed..." # Read a page (metadata + content preview) python3 scripts/notion_workspace.py page-read --page-id "def456..." # Update page title/properties python3 scripts/notion_workspace.py page-update --page-id "def456..." --title "Updated Title" # Archive (soft-delete) a page python3 scripts/notion_workspace.py page-archive --page-id "def456..." # ── BLOCKS ────────────────────────────────────────────── # Get children blocks of a page or block python3 scripts/notion_workspace.py blocks-get --block-id "def456..." # Append a paragraph block python3 scripts/notion_workspace.py blocks-append --block-id "def456..." --text "New paragraph content here" # Append a heading python3 scripts/notion_workspace.py blocks-append --block-id "def456..." --text "Section Title" --type heading_2 # Append a to-do item python3 scripts/notion_workspace.py blocks-append --block-id "def456..." --text "Complete this task" --type to_do # Append a bulleted list item python3 scripts/notion_workspace.py blocks-append --block-id "def456..." --text "Bullet point" --type bulleted_list_item # Append a code block python3 scripts/notion_workspace.py blocks-append --block-id "def456..." --text "print('hello')" --type code --language python # ── SEARCH ────────────────────────────────────────────── # Search entire workspace python3 scripts/notion_workspace.py search --query "project roadmap" # Search only pages python3 scripts/notion_workspace.py search --query "meeting notes" --filter page # Search only databases python3 scripts/notion_workspace.py search --query "tasks" --filter database ``` ## Requirements - Python 3.8+ - `requests` (`pip install requests`) - `NOTION_API_KEY` environment variable - `NOTION_DATABASE_ID` environment variable (optional, for default DB commands)

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 notion-workspace-1776112021 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 notion-workspace-1776112021 技能

通过命令行安装

skillhub install notion-workspace-1776112021

下载 Zip 包

⬇ 下载 notion-workspace v1.0.0

文件大小: 4.37 KB | 发布时间: 2026-4-14 11:49

v1.0.0 最新 2026-4-14 11:49
Databases, pages, blocks, search via Notion API

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部