Tools

Everything an agent can do, as this server describes it to agents (MCP tools/list, or GET /api). 45 tools. Arguments are JSON; ids, refs and copy keys are strings.

whoami

Who this token acts for, and the documents they can open.

guide

How Word Made works, for agents: topics overview (start here), layout (elements and their properties, hiccup, custom elements), files (the document's files), copy, assets (images, fonts, renditions), versions (branches, snapshots, restore, merge, fork), recipes.

ArgumentTypeWhat it is
topicoverview | layout | files | copy | assets | versions | recipes

list_docs

Documents you can open, newest first.

create_doc

A new document with one starter page, owned by you. Any page size: {w h unit} with unit mm, px, pt, cm or in (A4 portrait: 210 x 297 mm; a 16:9 deck: 1920 x 1080 px). The design is entirely the document's: change tokens.edn, fonts.edn, lib/ and pages/ freely.

ArgumentTypeWhat it is
title requiredstring
langsarrayLanguage codes, e.g. ["en", "it"] (default ["en"]).
pageobject

get_doc

A document's overview: title, languages, page size, pages in order (with their files), branches, snapshots, links to its PDFs.

ArgumentTypeWhat it is
doc requiredstringDocument id, or its link (https://.../d/<id>).
refstringVersion to read: a branch (its latest; default the first branch, genesis), a version name (genesis.38), a document-wide number (v120) or a snapshot name.

list_files

The document's files (doc.edn, tokens.edn, fonts.edn, assets.edn, framing.edn, copy/<lang>/*.edn, lib/**/*.clj, pages/*.clj, notes/*).

ArgumentTypeWhat it is
doc requiredstringDocument id, or its link (https://.../d/<id>).
refstringVersion to read: a branch (its latest; default the first branch, genesis), a version name (genesis.38), a document-wide number (v120) or a snapshot name.

read_file

One file's text (at a version).

ArgumentTypeWhat it is
doc requiredstringDocument id, or its link (https://.../d/<id>).
path requiredstring
refstringVersion to read: a branch (its latest; default the first branch, genesis), a version name (genesis.38), a document-wide number (v120) or a snapshot name.

write_file

Creates or replaces a file (one new version). EDN and Clojure must parse. To add a page use add_page (it also lists it in doc.edn).

ArgumentTypeWhat it is
branchstringBranch to change (default the first branch, genesis; older documents: main).
basestringOptional: the version you read (genesis.38). The change fails if the branch has moved on since (otherwise it applies to the latest version).
atstringOptional: the version you are changing ("genesis.12"). If it is the latest of a branch the change goes there; if it is older, a new branch with a generated name (eden, babel, ...) is made from it and the change goes there, so history is never rewritten. The result names the branch (branch, branched-from).
messagestringWhat changed, for the history (optional).
doc requiredstringDocument id, or its link (https://.../d/<id>).
path requiredstring
text requiredstring

edit_file

Replaces text in a file: old must occur exactly once (or set all). The best way to change one thing in a page, a style or a component.

ArgumentTypeWhat it is
messagestring
branchstringBranch to change (default the first branch, genesis; older documents: main).
path requiredstring
new requiredstring
basestringOptional: the version you read (genesis.38). The change fails if the branch has moved on since (otherwise it applies to the latest version).
old requiredstring
allboolean
atstringOptional: the version you are changing ("genesis.12"). If it is the latest of a branch the change goes there; if it is older, a new branch with a generated name (eden, babel, ...) is made from it and the change goes there, so history is never rewritten. The result names the branch (branch, branched-from).
doc requiredstringDocument id, or its link (https://.../d/<id>).

delete_file

Removes a file.

ArgumentTypeWhat it is
branchstringBranch to change (default the first branch, genesis; older documents: main).
basestringOptional: the version you read (genesis.38). The change fails if the branch has moved on since (otherwise it applies to the latest version).
atstringOptional: the version you are changing ("genesis.12"). If it is the latest of a branch the change goes there; if it is older, a new branch with a generated name (eden, babel, ...) is made from it and the change goes there, so history is never rewritten. The result names the branch (branch, branched-from).
messagestringWhat changed, for the history (optional).
doc requiredstringDocument id, or its link (https://.../d/<id>).
path requiredstring

apply_ops

Several changes as one version, all or nothing. ops_edn is an EDN vector of ops: [:put path text] [:edit path old new] [:delete path] [:move from to] [:set path [k ...] value] [:unset path [k ...]] [:copy :en :key "text"] [:copy-unset :en :key] [:link :key :en] [:unlink :key :en] [:flag-clear :key :en] [:asset :img/x {:blob sha :file name}] [:asset :img/x {...} :it] [:asset-unset :img/x] [:frame :img/x {:scale 1.2 :center [0.5 0.4]}] [:page-add :p21 source index] [:page-move :p21 3] [:page-delete :p21] [:settings :title "..."].

ArgumentTypeWhat it is
branchstringBranch to change (default the first branch, genesis; older documents: main).
basestringOptional: the version you read (genesis.38). The change fails if the branch has moved on since (otherwise it applies to the latest version).
atstringOptional: the version you are changing ("genesis.12"). If it is the latest of a branch the change goes there; if it is older, a new branch with a generated name (eden, babel, ...) is made from it and the change goes there, so history is never rewritten. The result names the branch (branch, branched-from).
messagestring
doc requiredstringDocument id, or its link (https://.../d/<id>).
ops_edn requiredstring

get_copy

The words: copy keys and values per language (all languages, or one), optionally only keys starting with a prefix such as p08/. Also linked (key -> the languages that share one value) and flags (key -> language -> the language it is older than), when there are any.

ArgumentTypeWhat it is
doc requiredstringDocument id, or its link (https://.../d/<id>).
langstring
prefixstring
refstringVersion to read: a branch (its latest; default the first branch, genesis), a version name (genesis.38), a document-wide number (v120) or a snapshot name.

set_copy

Sets copy in one language: entries {"p08/headline": "And those who *saw them pass.*"}. Markup: **strong**, *em*, newline for a line break. null means this language leaves the element out. Keys go to the file that holds them, new keys to copy/<lang>/<key namespace>.edn. Use entries_edn for structured values (lists, maps). A language linked to a key's shared value changes it for every linked language. A change flags the other languages that have their own text as stale (copy_status); updating one clears its flag.

ArgumentTypeWhat it is
messagestring
lang requiredstring
branchstringBranch to change (default the first branch, genesis; older documents: main).
basestringOptional: the version you read (genesis.38). The change fails if the branch has moved on since (otherwise it applies to the latest version).
removearray
entries_ednstring
entriesobject
atstringOptional: the version you are changing ("genesis.12"). If it is the latest of a branch the change goes there; if it is older, a new branch with a generated name (eden, babel, ...) is made from it and the change goes there, so history is never rewritten. The result names the branch (branch, branched-from).
doc requiredstringDocument id, or its link (https://.../d/<id>).

keep_copy

Clears stale flags: the languages keep their own text for a key as it is ("seen it, mine stays"). To update instead, set_copy the language: that clears its flag too.

ArgumentTypeWhat it is
branchstringBranch to change (default the first branch, genesis; older documents: main).
basestringOptional: the version you read (genesis.38). The change fails if the branch has moved on since (otherwise it applies to the latest version).
atstringOptional: the version you are changing ("genesis.12"). If it is the latest of a branch the change goes there; if it is older, a new branch with a generated name (eden, babel, ...) is made from it and the change goes there, so history is never rewritten. The result names the branch (branch, branched-from).
messagestring
doc requiredstringDocument id, or its link (https://.../d/<id>).
key requiredstring
langs requiredarray

copy_status

What needs translating: per language, the copy keys whose text is older than another language's (key, changed-in), and how many keys are linked.

ArgumentTypeWhat it is
doc requiredstringDocument id, or its link (https://.../d/<id>).
refstringVersion to read: a branch (its latest; default the first branch, genesis), a version name (genesis.38), a document-wide number (v120) or a snapshot name.

add_page

Adds a page: its Clojure source (a namespace defining (page c a)), placed at index (0-based; default last).

ArgumentTypeWhat it is
branchstringBranch to change (default the first branch, genesis; older documents: main).
basestringOptional: the version you read (genesis.38). The change fails if the branch has moved on since (otherwise it applies to the latest version).
atstringOptional: the version you are changing ("genesis.12"). If it is the latest of a branch the change goes there; if it is older, a new branch with a generated name (eden, babel, ...) is made from it and the change goes there, so history is never rewritten. The result names the branch (branch, branched-from).
messagestringWhat changed, for the history (optional).
doc requiredstringDocument id, or its link (https://.../d/<id>).
id requiredstringe.g. p21 or cover
source requiredstring
indexinteger

move_page

Moves a page to index (0-based). Page numbers follow the order.

ArgumentTypeWhat it is
branchstringBranch to change (default the first branch, genesis; older documents: main).
basestringOptional: the version you read (genesis.38). The change fails if the branch has moved on since (otherwise it applies to the latest version).
atstringOptional: the version you are changing ("genesis.12"). If it is the latest of a branch the change goes there; if it is older, a new branch with a generated name (eden, babel, ...) is made from it and the change goes there, so history is never rewritten. The result names the branch (branch, branched-from).
messagestringWhat changed, for the history (optional).
doc requiredstringDocument id, or its link (https://.../d/<id>).
id requiredstring
index requiredinteger

delete_page

Removes a page (its file and its place in doc.edn). History keeps it.

ArgumentTypeWhat it is
branchstringBranch to change (default the first branch, genesis; older documents: main).
basestringOptional: the version you read (genesis.38). The change fails if the branch has moved on since (otherwise it applies to the latest version).
atstringOptional: the version you are changing ("genesis.12"). If it is the latest of a branch the change goes there; if it is older, a new branch with a generated name (eden, babel, ...) is made from it and the change goes there, so history is never rewritten. The result names the branch (branch, branched-from).
messagestringWhat changed, for the history (optional).
doc requiredstringDocument id, or its link (https://.../d/<id>).
id requiredstring

list_assets

Images, fonts and other raw files the document uses: id, original name, format, size in px, bytes, and a link to the exact raw file.

ArgumentTypeWhat it is
doc requiredstringDocument id, or its link (https://.../d/<id>).
refstringVersion to read: a branch (its latest; default the first branch, genesis), a version name (genesis.38), a document-wide number (v120) or a snapshot name.

font_info

What is inside a font the document has: format (ttf, otf, collection, woff, woff2), outlines (truetype, cff), and per face its family, style, weight, italic, variation axes with ranges, named instances, characters per script (latin, cyrillic, greek, arabic, cjk, ...), license, and a fonts.edn line that uses it. For a collection, pick a face with {:font :font/x :face n}.

ArgumentTypeWhat it is
doc requiredstringDocument id, or its link (https://.../d/<id>).
assetstringAsset id, e.g. font/display.
blobstringOr the blob sha.
refstringVersion to read: a branch (its latest; default the first branch, genesis), a version name (genesis.38), a document-wide number (v120) or a snapshot name.

upload_asset

Adds a raw file (photo, camera raw, TIFF, PSD, HEIC, SVG, PDF, font, anything) and points an asset id at it. Give url (the server downloads it) or data_base64 (small files); with neither you get an upload link for curl (any size; the raw is kept exactly as uploaded, delivery renditions are made by rule).

ArgumentTypeWhat it is
doc requiredstringDocument id, or its link (https://.../d/<id>).
assetstringAsset id, e.g. img/cover or font/display.
filenamestring
langstringOptional: only for this language.
urlstring
data_base64string
branchstringBranch to change (default the first branch, genesis; older documents: main).

add_font

Adds a font to a family (fonts.edn) in one version: the font file (url, data_base64, or an asset already uploaded with upload_asset) and the family's entry. Any format: TTF, OTF, collections (face), WOFF, WOFF2. A variable font covers every weight; for static fonts add each weight. Refused, with the reason: not a font, a face the collection lacks, a slot the family already has (unless replace).

ArgumentTypeWhat it is
urlstring
branchstringBranch to change (default the first branch, genesis; older documents: main).
assetstringAsset id (default font/<family>); an existing one when no file is given.
faceintegerFor collections (TTC/OTC): which face, from 0.
replacebooleanChange a slot the family already has.
styleupright | italicDefault upright.
family requiredstringFamily name styles use, e.g. sans, display.
data_base64string
filenamestring
atstringOptional: the version you are changing ("genesis.12"). If it is the latest of a branch the change goes there; if it is older, a new branch with a generated name (eden, babel, ...) is made from it and the change goes there, so history is never rewritten. The result names the branch (branch, branched-from).
doc requiredstringDocument id, or its link (https://.../d/<id>).
weightintegerFor static fonts: the weight this file is (400, 700, ...).

render_page

Draws one page as a picture to look at (a PNG, width px, default 1200). Also says which copy keys and assets the page used, or the error with its file and line.

ArgumentTypeWhat it is
doc requiredstringDocument id, or its link (https://.../d/<id>).
page requiredstringPage id (p08) or number (8).
langstring
refstringVersion to read: a branch (its latest; default the first branch, genesis), a version name (genesis.38), a document-wide number (v120) or a snapshot name.
widthinteger

check

Checks every page in every language: code errors (with file and line), missing copy or assets, copy keys one language has and another lacks. draw true also draws every page (slower, catches layout errors Typst reports).

ArgumentTypeWhat it is
doc requiredstringDocument id, or its link (https://.../d/<id>).
refstringVersion to read: a branch (its latest; default the first branch, genesis), a version name (genesis.38), a document-wide number (v120) or a snapshot name.
drawboolean

build_pdf

Builds the PDF of a language and edition (print: raw images; email: images sized to their frames) and returns a download link (valid 7 days). Built once per version.

ArgumentTypeWhat it is
doc requiredstringDocument id, or its link (https://.../d/<id>).
langstring
editionstring
refstringVersion to read: a branch (its latest; default the first branch, genesis), a version name (genesis.38), a document-wide number (v120) or a snapshot name.

history

Versions, newest first: who changed what, through which tool, on which branch. Filter by branch or file path.

ArgumentTypeWhat it is
doc requiredstringDocument id, or its link (https://.../d/<id>).
branchstring
pathstring
limitinteger
beforeinteger

diff

What changed between two versions (default: a version and the one before it), file by file with unified diffs.

ArgumentTypeWhat it is
doc requiredstringDocument id, or its link (https://.../d/<id>).
fromstringVersion to read: a branch (its latest; default the first branch, genesis), a version name (genesis.38), a document-wide number (v120) or a snapshot name.
to requiredstringVersion to read: a branch (its latest; default the first branch, genesis), a version name (genesis.38), a document-wide number (v120) or a snapshot name.

restore

Rolls a branch back to any earlier version or snapshot, as a new version (nothing is lost; the rollback can itself be undone).

ArgumentTypeWhat it is
doc requiredstringDocument id, or its link (https://.../d/<id>).
to requiredstringVersion to read: a branch (its latest; default the first branch, genesis), a version name (genesis.38), a document-wide number (v120) or a snapshot name.
branchstringBranch to change (default the first branch, genesis; older documents: main).

branch

Starts a branch at a version (default: the first branch's latest), to try something without touching it.

ArgumentTypeWhat it is
doc requiredstringDocument id, or its link (https://.../d/<id>).
name requiredstring
fromstringVersion to read: a branch (its latest; default the first branch, genesis), a version name (genesis.38), a document-wide number (v120) or a snapshot name.

merge

Merges branch from into into (default the first branch): per file, and per key in EDN files. Conflicts are listed; strategy ours or theirs settles them.

ArgumentTypeWhat it is
doc requiredstringDocument id, or its link (https://.../d/<id>).
from requiredstring
intostring
strategyours | theirs

archive_branch

Closes a branch (its history stays).

ArgumentTypeWhat it is
doc requiredstringDocument id, or its link (https://.../d/<id>).
branch requiredstring

snapshot

Names a version ("sent-to-client", "draft-1") so it can be found, restored, forked or built later.

ArgumentTypeWhat it is
doc requiredstringDocument id, or its link (https://.../d/<id>).
name requiredstring
refstringVersion to read: a branch (its latest; default the first branch, genesis), a version name (genesis.38), a document-wide number (v120) or a snapshot name.
notestring

fork

A new document (yours) starting from a version of this one, e.g. to rework it in another format. Its history links back to the source.

ArgumentTypeWhat it is
doc requiredstringDocument id, or its link (https://.../d/<id>).
refstringVersion to read: a branch (its latest; default the first branch, genesis), a version name (genesis.38), a document-wide number (v120) or a snapshot name.
titlestring

verify_history

Replays the document's event log and checks every version reproduces exactly.

ArgumentTypeWhat it is
doc requiredstringDocument id, or its link (https://.../d/<id>).

list_asks

Asks and notes on the document, newest first. An ask is a request from a person to an agent about a thing on the page (anchor: a copy key like :how/core, an asset, "page how"), made on a version; its state is waiting, working (an agent took it), made (finished with a version) or withdrawn. A note is a remark for people (open or resolved). Each has a number (ask), who made it (from), and a thread of replies. To work on one: take_ask, do the work, then finish_ask with the version you made (or reply_ask to ask back or decline).

ArgumentTypeWhat it is
doc requiredstringDocument id, or its link (https://.../d/<id>).
stateopen | allopen (default): waiting and working asks and open notes; all: everything.

take_ask

Takes an ask: you are working on it (people see WORKING with your name). Refused when another agent has it. Act on it as the person who asked: within their role on the document.

ArgumentTypeWhat it is
doc requiredstringDocument id, or its link (https://.../d/<id>).
ask requiredintegerThe ask's number.
agentstringYour name as people should see it (default "an agent"), e.g. Claude Code.

reply_ask

Replies on an ask or note: ask back ("which language?"), say why you won't do it, or answer a note. People see it in the Notes tab, and the agent that took an ask hears replies on it.

ArgumentTypeWhat it is
doc requiredstringDocument id, or its link (https://.../d/<id>).
ask requiredinteger
text requiredstring
agentstringYour name, when you reply as an agent.

finish_ask

Finishes an ask with the version you made for it (the version a change tool returned, e.g. genesis.39; default the latest of the first branch) and an optional line on what you did. People see MADE genesis.39 and can look at it.

ArgumentTypeWhat it is
doc requiredstringDocument id, or its link (https://.../d/<id>).
ask requiredinteger
versionstring
textstring
agentstring

ask

Makes an ask for an agent (editors) or, with note: true, a note for people (anyone on the document), about a thing on the page. Agents use notes to leave people a question or a reminder ("page 3 needs a photo").

ArgumentTypeWhat it is
doc requiredstringDocument id, or its link (https://.../d/<id>).
text requiredstring
anchorstringWhat it is about: a copy key (:how/core), an asset id, "page how".
pagestring
langstring
refstringVersion to read: a branch (its latest; default the first branch, genesis), a version name (genesis.38), a document-wide number (v120) or a snapshot name.
noteboolean
tostringAn agent's name (default: any agent on the document).

members

Who can open the document, with roles (owner, editor, viewer), and open invites.

ArgumentTypeWhat it is
doc requiredstringDocument id, or its link (https://.../d/<id>).

invite

Shares the document with someone by email (owners only): an existing user becomes a member at once; anyone else gets an invite link to send.

ArgumentTypeWhat it is
doc requiredstringDocument id, or its link (https://.../d/<id>).
email requiredstring
roleviewer | editor | owner

set_role

Changes a member's role, or removes them with role none (owners only).

ArgumentTypeWhat it is
doc requiredstringDocument id, or its link (https://.../d/<id>).
member requiredstringTheir email.
role requiredviewer | editor | owner | none

export_doc

Everything about a document in one zip: its files, every raw asset ever uploaded (exact bytes), the full version history and snapshots. Returns a download link (7 days). import_doc reads it back.

ArgumentTypeWhat it is
doc requiredstringDocument id, or its link (https://.../d/<id>).
refstringVersion to read: a branch (its latest; default the first branch, genesis), a version name (genesis.38), a document-wide number (v120) or a snapshot name.
historybooleanInclude the history (default true).

import_doc

A new document from an export zip at a URL (a download link from export_doc, from this or another server), with its history.

ArgumentTypeWhat it is
url requiredstring
titlestring