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.

add_document_to_folder

Scope: documents:write

File a document in a folder, the way a person drags it there on the Documents page. A document can sit in several folders at once; adding it here keeps it in the others. Folders are one level (never a folder inside a folder) — to group documents inside a folder, file one document and make the rest its sub-pages (update_document with parent_id). A folder shared with people reaches every document in it, so filing one there lets them open it too.

ParameterTypeRequiredDescription
document_idstringyes
folder_idstringyesA folder's id (a document with is_folder, from list_documents).

add_skill_file

Scope: documents:write

Put a file in a skill's toolbox — the scripts and files an agent installs on its computer to follow the skill (a script you wrote and ran, a font, a colour look, a logo clip, music). Send a script or any text file as text; a file already in this space's Assets as asset_id; anything else as base64 (≤25 MB). A file with the same name is replaced. ≤20 files per skill.

ParameterTypeRequiredDescription
document_idstringyes
namestringFile name, like edit_reel.py. Optional with asset_id.
notestringA few words on what it is for, shown beside it ("cuts and joins the clip").
textstringThe file's contents, for a script or any text file.
asset_idstringA file in this space's Assets (list_document_assets).
base64stringThe file's bytes, base64.
mime_typestring

attach_skill_to_app

Scope: documents:write

Make a skill travel WITH an app: whoever adds or buys the app (its Origin, a Marketplace listing) gets this skill and its toolbox beside it, so their agent can do the work without your computer. Use it for the craft behind an app — how its agent makes the video, writes the report — once the skill and its toolbox hold everything (scripts, styles; zip a folder with many files). Wakato checks the toolbox when it is attached and again when the app is frozen: a script run straight from the internet (curl … | sh), admin rights (sudo), a key or token inside, scrambled code, or writing outside its own folder stops a sale until fixed. The skill must be in the app's space.

ParameterTypeRequiredDescription
app_idstringyesThe app (list_apps).
document_idstringyesThe skill (list_skills).

check_skill

Scope: documents:read

Run Wakato's safety check on a skill's toolbox and say what it found: blocked (stops the skill travelling with an app until fixed — each finding names the file, the line and what to change), notes (downloads without a fixed version), where its scripts connect, and what it runs on (models, GPUs, tools on the agent's computer). Run it after changing the toolbox, before selling an app it travels with.

ParameterTypeRequiredDescription
document_idstringyes
freshbooleanRead every file again instead of the kept result.

comment_on_document

Scope: documents:write

Leave a comment on a document, the way a person does: pinned to words in it (quote them EXACTLY as written — get_document first), or on the whole document when quote is left out. The comment shows beside the text; the document itself is not changed. mention_user_ids tags people (their ids from list_document_access or list_space_members) — they are told, and someone tagged who can't open the document gets comment access.

ParameterTypeRequiredDescription
document_idstringyes
bodystringyesWhat you want to say, up to 4000 characters.
quotestringThe exact words the comment is about. Leave out for the whole document.
occurrencenumberWhen those words appear more than once: which one (1 = first).
mention_user_idsstring[]People to tag.

create_document

Scope: documents:write

Create a document, or a folder (is_folder). Write the text as markdown (headings, lists, links, bold) — the simple way. A long document: create it with its first section, then add each next section with update_document append_markdown. content (TipTap JSON) is the advanced alternative. Folders are one level: they always sit at the top, never inside another folder. folder_ids files the new document into folders; parent_id makes it a sub-page of another document (that is how to nest things).

ParameterTypeRequiredDescription
titlestring
markdownstringThe document's text as markdown.
contentobject
parent_idstringMake it a sub-page of this DOCUMENT (not a folder).
folder_idsstring[]Folders to file it in (ids of documents with is_folder). Not for a folder.
iconstringSingle emoji (e.g. '📄') or Lucide icon name (e.g. 'Rocket').
is_folderbooleanMake a folder. Folders always sit at the top.

detach_skill_from_app

Scope: documents:write

Stop a skill travelling with an app. The skill stays in the space; copies of the app already added or bought keep theirs.

ParameterTypeRequiredDescription
app_idstringyes
document_idstringyes

get_document

Scope: documents:read

Get a document: its content (TipTap JSON) and its details — who created it and when, who edited it last (a person, an agent or an automation), where it sits (folder, parent), the documents inside it, who can open it and at what level, the open comments, and what happened to it lately.

ParameterTypeRequiredDescription
document_idstringyes

get_shared_note

Scope: documents:read

Read one note shared with this space: the summary, what was said, the questions (who asked, the answer), the to-dos and the full transcript by speaker. transcript:false leaves the transcript out.

ParameterTypeRequiredDescription
note_idstringyes
transcriptbooleanInclude the full transcript (default true).

get_skill

Scope: documents:read

Open a skill to follow it: its steps ("how", every @ tag shown as "@Label [kind:id]" — a handle you can use in your tools), its toolbox files, and install — one plain terminal command that puts the toolbox on your computer (skip it when the folder's .version already matches). Call it BEFORE you start a job a skill is tagged for (in your instructions or a message) or that a skill's title names.

ParameterTypeRequiredDescription
document_idstringyesThe skill's id, from your Skills list or list_skills.

keep_private

Scope: documents:write

Keep a document, a folder of documents, a page, a table (or only some of its columns) or an Assets folder private from people outside: agents may still use it, but no agent ever passes it on to a customer, by any channel. Use it when someone says a thing must stay internal ("don't share our costs", "keep the supplier list private").

ParameterTypeRequiredDescription
kinddocument | page | table | folderyesfolder = an Assets folder; a folder of documents is a document.
idstringyes
columnsstring[]A table: only these column keys (leave out to keep the whole table private).

list_document_access

Scope: documents:read

Who can open a document or a folder: the people it is shared with and at what level (Can view / Can comment / Can edit — including shares that come from a folder or a document above it), invitations sent to emails that aren't on Wakato yet, the link, and the space's agents. A share on a folder or a document covers everything inside it.

ParameterTypeRequiredDescription
document_idstringyesA document's or a folder's id.

list_document_comments

Scope: documents:read

Read the comments on a document: each thread with the words it is about (quote, or null for the whole document), who wrote what and when. Open threads only unless include_resolved.

ParameterTypeRequiredDescription
document_idstringyes
include_resolvedbooleanAlso the threads marked done.

list_documents

Scope: documents:read

List collaborative documents and folders in the space. Each document carries folder_ids (the folders it is filed in — a document can be in several, or none); folder_id narrows the list to one folder's documents.

ParameterTypeRequiredDescription
folder_idstringOnly the documents filed in this folder.

list_private_things

Scope: documents:read

What this space keeps private from people outside: documents (and folders of documents), pages, tables or some of their columns, and Assets folders — plus what is always kept back (card numbers, passwords, staff phones, other customers' details). You may read and use them; never pass what is in them on to anyone outside the business. Every message you send outside is checked and stopped if it does.

list_shared_notes

Scope: documents:read

List notes people shared with this space: recorded meetings, talks and conversations, written up with who said what (title, when, how long, who spoke, the summary). Use it when asked about a meeting, a call, a talk, what someone said, or 'the notes from…'. query narrows by words in the title or summary.

ParameterTypeRequiredDescription
querystringWords to look for in the title or summary.
limitnumberAt most this many (default 20, max 50).

list_skills

Scope: documents:read

List the skills of this space: written-down ways the space does a job (a reel edit, a refund reply…), each with how many toolbox files it has and how often agents used it. Your instructions already carry the same list; use this when it says there are more.

remove_document_from_folder

Scope: documents:write

Take a document out of one folder. The document stays, and stays in any other folder it is in.

ParameterTypeRequiredDescription
document_idstringyes
folder_idstringyes

remove_skill_file

Scope: documents:write

Take a file out of a skill's toolbox, by its name (or file_id).

ParameterTypeRequiredDescription
document_idstringyes
namestring
file_idstring

reply_to_document_comment

Scope: documents:write

Answer in a comment thread on a document — where someone asked you. Your answer shows beside the text in the document. A reply reopens a thread that was marked done.

ParameterTypeRequiredDescription
thread_idstringyes
bodystringyesYour answer, up to 4000 characters.
mention_user_idsstring[]People to tag.

resolve_document_comment

Scope: documents:write

Mark a comment thread on a document as done (resolved:false opens it again).

ParameterTypeRequiredDescription
thread_idstringyes
resolvedboolean

save_skill

Scope: documents:write

Write down how a job is done as a skill, so every agent of this space does it the same way — e.g. after a person says "save how you did this as a skill". Without document_id it makes a new skill (title required — name the job plainly, it is how agents find it: "Brand reel edit", "Answer a refund request"); with document_id it changes that skill (or turns that document into one) — only what you send changes. how = the steps in markdown: headings, numbered steps, bullets, code blocks (no tables — a table becomes a list, one row per bullet); tag things of the space as "@Label [kind:id]" (the handles your tools give you) so the person sees chips. Write it so another agent could follow it without you: which files, which settings, what never to do. Then add the scripts and files it needs with add_skill_file. The person is told in your chat and can change anything.

ParameterTypeRequiredDescription
document_idstringA skill (or a document) to change. Leave out to make a new one.
titlestringA short name that says the job, like "Brand reel edit" — agents find a skill by its title.
howstringThe steps, in markdown. Replaces the whole text when sent.
parent_idstringA folder (document) to put a new skill in.

share_document

Scope: documents:write

Share a document — or a whole FOLDER, which shares every document in it now and later — with people outside or inside the space: by email (someone not on Wakato gets an invitation email that only opens for that address; someone who is gets it in their Shared with you) or by user_id. role per person: viewer, commenter (the default) or editor; the documents inside a document or folder come with it. The owner confirms every share before anything is sent. Sharing again with a new role changes their level.

ParameterTypeRequiredDescription
document_idstringyesA document's or a folder's id.
peopleobject[]
emailsstring[]Shorthand: addresses, all at role.
roleviewer | commenter | editorThe level for anyone without their own (default commenter).
messagestringA short note in the email and the notification.

stop_keeping_private

Scope: documents:write

Take the Keep private mark off a document, page, table (or some of its columns) or Assets folder, so agents may share it with people outside again. Always asks the person first.

ParameterTypeRequiredDescription
kinddocument | page | table | folderyes
idstringyes
columnsstring[]A table: only these column keys stop being private.

unshare_document

Scope: documents:write

Take someone's access to a document or folder away, or withdraw an invitation that hasn't been opened: user_id, email or invitation_id (from list_document_access). Access that comes from a folder or a document above is taken off there.

ParameterTypeRequiredDescription
document_idstringyes
user_idstring
emailstring
invitation_idstring

update_document

Scope: documents:write

Update a document's title/content/icon, archive it, or move it: parent_id puts it inside another document as a sub-page (null brings it back to the top). markdown replaces the whole text; append_markdown adds a section to the END (how a long document is written piece by piece — the person sees it grow). content (TipTap JSON) is the advanced alternative. To file it in a folder use add_document_to_folder.

ParameterTypeRequiredDescription
document_idstringyes
titlestring
markdownstringReplace the whole text with this markdown.
append_markdownstringAdd this markdown to the end of the document.
contentobject
iconstringSingle emoji (e.g. '📄') or Lucide icon name (e.g. 'Rocket').
archivedboolean
parent_idstring,nullMove it under this DOCUMENT as a sub-page; null = back to the top. Not a folder id.

On this page