| name | craft |
| description | Manage Craft notes, documents, and tasks via CLI. Use when the user asks to add notes, create documents, manage tasks, search their Craft documents, or work with daily notes. Craft is a note-taking app for macOS/iOS. |
| metadata | {"clawdbot":{"install":[{"id":"craft-cli","kind":"script","path":"scripts/craft","dest":"~/bin/craft","label":"Install Craft CLI"}]}} |
Craft CLI
Interact with Craft.do documents, blocks, and tasks.
Setup
- Install: Copy
scripts/craft to ~/bin/craft and make executable
- Get API URL from Craft: Settings > Integrations > Craft Connect > Create Link
- Set env var:
export CRAFT_API_URL='https://connect.craft.do/links/YOUR_LINK/api/v1'
Add to shell profile for persistence.
Commands
Documents
craft folders
craft docs [location]
craft doc <id>
craft daily [date]
craft search <term>
craft create-doc "Title" [folderId]
Blocks
craft add-block <docId> "markdown"
craft add-to-daily "markdown" [date]
craft update-block <blockId> "markdown"
craft delete-block <blockId>...
Tasks
craft tasks [scope]
craft add-task "text" [scheduleDate]
craft complete-task <id>
craft delete-task <id>
Collections
craft collections
craft collection-items <id>
Notes
- Markdown content passed as arguments; escape quotes if needed
- Dates:
today, yesterday, or YYYY-MM-DD
- Task scopes:
inbox (default), active, upcoming, logbook
- Document locations:
unsorted, trash, templates, daily_notes