Notion Tool
An external tool that performs page and database search, retrieval, creation, and updates via the Notion API.
How to Invoke
Bash: Run with animaworks-tool notion <サブコマンド> [引数]
List of Actions
search — Workspace Search
animaworks-tool notion search [検索ワード] -j
get_page — Retrieve Page Metadata
animaworks-tool notion get-page PAGE_ID -j
get_page_content — Retrieve Page Content
animaworks-tool notion get-page-content PAGE_ID -j
get_database — Retrieve Database Metadata
animaworks-tool notion get-database DATABASE_ID -j
query — Database Query
animaworks-tool notion query DATABASE_ID [--filter JSON] [--sorts JSON] [-n 10] -j
filter: Notion API filter JSON (optional)sorts: Array of sort conditions (optional)
create_page — Create Page
animaworks-tool notion create-page --parent-page-id ID --properties JSON -j
- Either
parent_page_idorparent_database_idis required children: Array of page content blocks (optional)
update_page — Update Page
animaworks-tool notion update-page PAGE_ID --properties JSON -j
create_database — Create Database
animaworks-tool notion create-database --parent-page-id ID --title "名前" --properties JSON -j
CLI Usage
animaworks-tool notion search [検索ワード] -j
animaworks-tool notion get-page PAGE_ID -j
animaworks-tool notion get-page-content PAGE_ID -j
animaworks-tool notion get-database DATABASE_ID -j
animaworks-tool notion query DATABASE_ID [--filter JSON] [--sorts JSON] [-n 10] -j
animaworks-tool notion create-page --parent-page-id ID --properties JSON -j
animaworks-tool notion update-page PAGE_ID --properties JSON -j
animaworks-tool notion create-database --parent-page-id ID --title "名前" --properties JSON -j
Notes
- The Notion API Token must be pre-configured in credentials
- Page/database IDs can be with or without hyphens
- The structure of properties follows the Notion API schema