Documents
Space MCP tools in the Documents scope (documents). Reach these with a wks_live_ key over space-mcp or space-api.
Tools in the documents scope, callable over space-mcp (tools/call) or space-api (REST) with a wks_live_* key that grants documents.
create_document
Scope: documents:write
Create a document. content is a TipTap doc JSON ({type:'doc',content:[...]}).
| Parameter | Type | Required | Description |
|---|---|---|---|
title | string | ||
content | object | ||
parent_id | string | ||
icon | string | Single emoji (e.g. '📄') or Lucide icon name (e.g. 'Rocket'). | |
is_folder | boolean |
get_document
Scope: documents:read
Get a document including its content (TipTap JSON).
| Parameter | Type | Required | Description |
|---|---|---|---|
document_id | string | yes |
list_documents
Scope: documents:read
List collaborative documents in the space.
update_document
Scope: documents:write
Update a document's title/content/icon, or archive it.
| Parameter | Type | Required | Description |
|---|---|---|---|
document_id | string | yes | |
title | string | ||
content | object | ||
icon | string | Single emoji (e.g. '📄') or Lucide icon name (e.g. 'Rocket'). | |
archived | boolean |