We are planning to add more capabilities to the existing ones in the future.
Available Commands
Here are the available commands that Craft understands:- Open a document
- Create a document
- Append to an existing document
- Start search in a Space
- Access Daily Notes
Open Page
Inputs:blockId– you can access it if you click Copy Deeplink in a doc, the link has ablockIdparameterspaceId– your user id usually (random guid), if it’s a shared workspace, you need to get it by clicking Copy Deeplink
Open Space
Inputs:spaceId– you can get this from a simple deeplink, when clicking Copy Deeplinktab(optional) –calendarorsearchordocuments
Create New Empty Document
Input: Simply use this URL to create a new empty document in your currently open space:Create Document
Inputs:spaceId– you can get this from a simple deeplink, when clicking Copy Deeplinkcontent– Percentage encoded markdown (images not supported yet)title– Percentage encoded plaintext titlefolderId– Parameter is required, but can be empty
Append to Doc
Inputs:spaceId– you can get this from a simple deeplink, when clicking Copy Deeplinkindex– index of new block (0 for prepend, huge number for append (more blocks than what you have in your doc)parentBlockId– blockId of documentcontent– percentage encoded string
Search in Workspace
Starts a search in a given workspace and prefills search textfield with the query contents. Inputs:- spaceId – you can get this from a simple deeplink, when clicking Copy Deeplink
- query – Make sure it’s percentage encoded
Access to Daily Notes
- Yesterday –
craftdocs://openByQuery?query=yesterday&spaceId=<spaceId> - Today –
craftdocs://openByQuery?query=today&spaceId=<spaceId> - Tomorrow –
craftdocs://openByQuery?query=tomorrow&spaceId=<spaceId>