Literess

v1.0.1
com.literess/literess Checked 23 hours ago Published 8 days ago

Work in a writer's Literess manuscripts: read pages, comment, suggest tracked edits, chat with her.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

introduce

Call this FIRST, on every connection: every other tool refuses until you have. Say who you are here: the name you go by (the user and Literess @mention you by it), a line about yourself, your colour, and your picture — avatar_base64 + avatar_file_name (a small png, jpg, webp or gif) or avatar_url from an earlier upload. No picture at hand? Call without one: you get an upload link to curl it to, then call again with avatar_url. A name you used before continues that person — its memories, trust, colour and picture — and the name alone is then enough.

ParameterTypeDescription
name *stringThe name you go by in Literess
avatar_base64stringYour picture as base64 (a data: URL is fine), up to 2 MB
avatar_file_namestringIts file name with the extension, e.g. "me.png"
avatar_urlstringA picture you already uploaded here
colorstringYour colour as #rrggbb — your name, the tint behind your messages and your @-tags wear it
descriptionstringWho you are, in a line — shown beside your name

list_documents

List documents with titles, summaries, word counts and the folder each is kept in (folderId; list_folders names them). Optionally filter by project. Documents in PIN-locked projects are hidden until the project is unlocked.

ParameterTypeDescription
limitinteger
offsetinteger
pinstringThe project's 4-digit PIN when it is locked — ask the user for it, never guess
project_idstringFilter to documents in this project

search_documents

Semantic search across documents using natural language. Optionally filter to a specific project.

ParameterTypeDescription
query *string
limitinteger
pinstringThe project's 4-digit PIN when it is locked — ask the user for it, never guess
project_idstringFilter results to this project

get_document

Fetch the content of a document as markdown. For long documents, use offset/limit to page through top-level sections. Pass include_ids:true to get an `<!-- id:… -->` comment on every block and list item — the ids the block tools (insert_blocks, replace_blocks, delete_blocks, move_block, indent_blocks) address.

ParameterTypeDescription
document_id *string
fold_unchangedbooleanFold runs of blocks that did not change since this connection last read the document into one line
include_idsboolean
limitinteger
offsetinteger
pinstringThe project's 4-digit PIN when it is locked — ask the user for it, never guess
revstringRead the saved version with this rev (from list_versions) instead of the current content
since_last_readbooleanReturn only what changed since this connection last read this document (with the new text), instead of the content

query_document

Ask a natural language question about a specific document. Uses AI to analyze the full document and answer.

ParameterTypeDescription
document_id *string
question *string
pinstringThe project's 4-digit PIN when it is locked — ask the user for it, never guess

create_document

Create a new document from markdown given as content — or from a file you uploaded with upload_file, as from_file: a .md (markdown), .txt (plain text, kept literally), or a manuscript (.docx, .epub as one document with its chapters in order, .odt) converted into Literess's own formatting: headings, emphasis, links, nested lists, quotes, tables, pictures, footnotes as notes (a long text never has to pass through your reply). In content, separate paragraphs with a blank line; end a line with a backslash (\) for a line break inside a paragraph (a bare single line break is a space — except pla…

ParameterTypeDescription
contentstringDocument content as markdown (blank line between paragraphs)
folder_idstringA folder (from list_folders) to keep it in — its project is then the document's
from_filestringInstead of content: the url of an uploaded .md, .txt, .docx, .epub or .odt file
pinstringThe project's 4-digit PIN when it is locked — ask the user for it, never guess
project_idstringProject to assign the document to
titlestringDocument title (auto-generated from content if omitted)

update_document

Replace a document's entire content and/or title. Content is markdown; separate paragraphs with a blank line and end a line with a backslash (\) for a line break inside a paragraph (a bare single line break is a space). By default (mode:"suggest") the rewrite lands as tracked changes the owner reviews — the old text struck through, the new text added, attributed to you. mode:"direct" overwrites immediately. For targeted changes prefer the block tools (replace_blocks etc.) or edit_document. dry_run:true previews what the chosen mode would write, without saving.

ParameterTypeDescription
document_id *string
contentstringNew content as markdown (blank line between paragraphs)
dry_runbooleanPreview the result of the chosen mode without writing
modestring"suggest" = tracked change the owner accepts or rejects (default); "direct" = apply immediately
pinstringThe project's 4-digit PIN when it is locked — ask the user for it, never guess
reasonstringWhy this change is proposed (shown on the suggestion)
titlestringNew title (always applied directly, not suggested)

edit_document

Make a targeted edit without resending the whole document. Operations: append/prepend (no anchor), insert_before/insert_after/replace_section/delete_section (anchor_id = a block id from get_document). By default (mode:"suggest") the edit lands as a tracked change the owner accepts or rejects, attributed to you; mode:"direct" applies it immediately. dry_run:true previews the document the chosen mode would leave, without saving. For ranges, nesting and moves use the block tools (replace_blocks, move_block, indent_blocks…).

ParameterTypeDescription
document_id *string
operation *string
anchor_idstringTarget block id (required except for append/prepend)
answeringstringThe comment thread (id from list_comments / waiting_for_me) this edit answers — your reply there says what you did
contentstringMarkdown to insert (required except for delete_section). Separate paragraphs with a blank line; end a line with a backslash (\) for a line break inside a paragraph — a bare single line break is a sp…
dry_runbooleanPreview the result without writing
modestring"suggest" = tracked change the owner accepts or rejects (default); "direct" = apply immediately
pinstringThe project's 4-digit PIN when it is locked — ask the user for it, never guess
reasonstringWhy this change is proposed (shown on the suggestion)

insert_blocks

Insert new content into the document. It lands as a tracked suggestion — a redline the user accepts or rejects — so insert decisively. `content` is markdown and MAY CONTAIN MULTIPLE BLOCKS: headings ("# " through "#### "), paragraphs separated by blank lines, bulleted/numbered lists, pipe tables, ```code fences, and `<Callout>` asides — each becomes its own block with its own id. Blocks indented by two leading spaces per level nest under the block above them (Notion-style sub-elements). Prefer ONE call carrying a whole section (heading + its paragraphs + a list) over several single-parag…

ParameterTypeDescription
content *stringThe content of the new block(s). Inline markdown (**bold**, *italic*, ~~strikethrough~~, `code`) is supported. MAY CONTAIN MULTIPLE BLOCKS — headings ("# " through "#### "), paragraphs (blank line b…
document_id *string
location *stringWhere to insert the content
answeringstringThe comment thread (id from list_comments / waiting_for_me) this edit answers — your reply there says what you did
asstringNode kind. "auto" (default) infers from the anchor. "list_item" forces a list item — the anchor MUST be inside a list. "paragraph" forces a normal paragraph; when anchored on a list item it is place…
if_unchangedobject{blockId: hash} from get_document blockHashes — the edit is refused if any of those blocks changed since
modestring"suggest" = tracked change the owner accepts or rejects (default); "direct" = apply immediately
nestingstringDepth relative to the referenced block. "same" (default) matches the reference's indent level; "child" nests one level deeper — a sub-item when the reference is a list item, an indented sub-block (N…
pinstringThe project's 4-digit PIN when it is locked — ask the user for it, never guess
reference_idstringRequired if location is before_id or after_id - the ID of the reference block

replace_blocks

Replace a contiguous range of blocks with new markdown. Applied as a tracked suggestion (redline) the user accepts or rejects — make the change you believe in. The new content can be ANY SHAPE AND SIZE relative to what it replaces: one paragraph can become a heading plus several paragraphs; five ragged paragraphs can become one tight one; a whole section (heading to heading) or even the ENTIRE document (first block to last) can be rewritten in a single call. This is the right tool for structural work — restructuring a section, turning a stub bullet into a heading with real body text, conve…

ParameterTypeDescription
document_id *string
from_block_id *stringFirst block of the range to replace (inclusive).
answeringstringThe comment thread (id from list_comments / waiting_for_me) this edit answers — your reply there says what you did
contentstringThe new markdown. Required unless you give find/replace. May contain multiple blocks — headings, paragraphs (blank line between), lists, tables, code fences, callouts — each becomes a separate blo…
findstringA figure only: the words to change, exactly as one of its labels or its caption reads them.
if_unchangedobject{blockId: hash} from get_document blockHashes — the edit is refused if any of those blocks changed since
modestring"suggest" = tracked change the owner accepts or rejects (default); "direct" = apply immediately
pinstringThe project's 4-digit PIN when it is locked — ask the user for it, never guess
replacestringWith find: what those words become.
to_block_idstringLast block of the range (inclusive, in document order). Omit to replace only from_block_id. Must be in the same container as from_block_id (both top-level, or both items of the same list); list wrappe…

delete_blocks

Delete a block, or a contiguous range of blocks, as a tracked suggestion. Give `from_block_id` alone for one block, or add `to_block_id` to remove everything between them inclusive (e.g. an entire section). Both must be in the same container. Address blocks by the ids get_document returns with include_ids:true. Lands as a tracked suggestion (mode:"suggest", default) or applies immediately (mode:"direct"). Pass if_unchanged with the blockHashes you read to refuse the edit if the user changed those blocks meanwhile.

ParameterTypeDescription
document_id *string
from_block_id *stringFirst block to delete (inclusive).
answeringstringThe comment thread (id from list_comments / waiting_for_me) this edit answers — your reply there says what you did
if_unchangedobject{blockId: hash} from get_document blockHashes — the edit is refused if any of those blocks changed since
modestring"suggest" = tracked change the owner accepts or rejects (default); "direct" = apply immediately
pinstringThe project's 4-digit PIN when it is locked — ask the user for it, never guess
to_block_idstringLast block of the range to delete (inclusive, in document order). Omit to delete only from_block_id. Must be in the same container as from_block_id (both top-level, or both items of the same list); li…

move_block

Move a block to a different location in the document. Applied as a tracked suggestion the user accepts or rejects. Address blocks by the ids get_document returns with include_ids:true. Lands as a tracked suggestion (mode:"suggest", default) or applies immediately (mode:"direct"). Pass if_unchanged with the blockHashes you read to refuse the edit if the user changed those blocks meanwhile.

ParameterTypeDescription
block_id *stringThe ID of the block to move
document_id *string
target_location *stringWhere to move the block
answeringstringThe comment thread (id from list_comments / waiting_for_me) this edit answers — your reply there says what you did
if_unchangedobject{blockId: hash} from get_document blockHashes — the edit is refused if any of those blocks changed since
modestring"suggest" = tracked change the owner accepts or rejects (default); "direct" = apply immediately
pinstringThe project's 4-digit PIN when it is locked — ask the user for it, never guess
reference_idstringRequired if target_location is before_id or after_id

indent_blocks

Change the nesting depth of a block — a list item OR a paragraph/todo/code block/callout/comment note. direction:"in" nests it one level deeper, making it a sub-element of the block above (Notion-style), and carries any of its own already-nested children along with it. direction:"out" promotes it one level up. A block can sit at most one level deeper than the block above it, and headings/tables/images stay at the left margin. Outdenting a block already at the top level is not allowed — use move_block to reorder it or delete_blocks to remove it instead. Applied as a tracked suggestion. Addr…

ParameterTypeDescription
block_id *stringThe ID of the block to indent or outdent
direction *string"in" nests one level deeper; "out" promotes one level up
document_id *string
reason *stringBrief reason for the change (used for emotion analysis and the activity log)
answeringstringThe comment thread (id from list_comments / waiting_for_me) this edit answers — your reply there says what you did
if_unchangedobject{blockId: hash} from get_document blockHashes — the edit is refused if any of those blocks changed since
modestring"suggest" = tracked change the owner accepts or rejects (default); "direct" = apply immediately
pinstringThe project's 4-digit PIN when it is locked — ask the user for it, never guess

batch_edits

Several block edits in one go, all or nothing: every step is checked first and one refused step writes nothing. mode:"direct" commits them as ONE version (one rev, one restore_version away); mode:"suggest" (default) lands them as suggestions the user reviews together. Each step is {tool, args} with a block tool's name (insert_blocks, replace_blocks, …) and its arguments.

ParameterTypeDescription
document_id *string
steps *array
answeringstringThe comment thread (id from list_comments / waiting_for_me) this edit answers — your reply there says what you did
if_unchangedobject{blockId: hash} from get_document blockHashes — the batch is refused if any of those blocks changed since
modestring"suggest" = tracked change the owner accepts or rejects (default); "direct" = apply immediately
pinstringThe project's 4-digit PIN when it is locked — ask the user for it, never guess

list_chats

List chat sessions with titles, summaries, and the document each is about (`document`: the one it works in, else the one it began on — the user keeps a chat per document). Optionally filter by project.

ParameterTypeDescription
limitinteger
offsetinteger
project_idstringFilter to chats in this project

search_chats

Semantic search across chat conversations. Optionally filter to a specific project.

ParameterTypeDescription
query *string
limitinteger
project_idstringFilter results to this project

query_chat

Ask a natural language question about a specific chat conversation.

ParameterTypeDescription
chat_session_id *string
question *string

get_chat_messages

Fetch the message history of a chat session. Each message says who wrote it: role (user, assistant, agent, or companion at a table) and by (the name). For long chats, use offset/limit to paginate.

ParameterTypeDescription
chat_session_id *string
limitinteger
offsetinteger

list_projects

List projects with document counts, descriptions and colors, most recently active first. A project with `isLocked: true` is PIN-protected: ask the user for its PIN, then call unlock_project.

ParameterTypeDescription
limitinteger
offsetinteger

get_project

Get project details including instructions. Its folders, their own instructions and where its documents are kept: list_folders.

ParameterTypeDescription
project_id *string
pinstringThe project's 4-digit PIN when it is locked

unlock_project

Unlock a PIN-protected project for the rest of this connection. Only use a PIN the user gave you in this conversation — never guess; a few wrong tries lock this connection out.

ParameterTypeDescription
pin *stringThe 4-digit PIN the user told you
project_id *string

list_folders

How a project is organized: its folders (nested, outermost first, with each one's own instructions) and the documents kept in each and at the project's top. A folder's instructions apply to the documents inside it, on top of the project's (get_project) and every folder above it — follow them when you write there.

ParameterTypeDescription
project_id *string
pinstringThe project's 4-digit PIN when it is locked

create_folder

Make a folder in a project — at its top, or inside another folder of the same project (parent_folder_id). Returns its id.

ParameterTypeDescription
name *string
project_id *string
parent_folder_idstringA folder to put it in; leave out for the project's top
pinstringThe project's 4-digit PIN when it is locked

update_folder

Rename a folder, set its own instructions (the whole text; "" clears them), paint it a colour (#rrggbb; "" unpainted), or move it into another folder of the same project ("" for the project's top). Only what you pass changes.

ParameterTypeDescription
folder_id *string
colorstringPaint it: #rrggbb ("" leaves it unpainted)
instructionsstringIts own instructions, the whole text; "" clears them
namestring
parent_folder_idstringMove it into this folder; "" for the project's top
pinstringThe project's 4-digit PIN when it is locked

delete_folder

Delete a folder. Nothing in it is deleted: its documents and folders move to its parent (or the project's top). Only when the user asks.

ParameterTypeDescription
folder_id *string
pinstringThe project's 4-digit PIN when it is locked

move_document_to_folder

Keep a document in a folder ("" for its project's top). A folder of another project takes the document into that project, its chats following.

ParameterTypeDescription
document_id *string
folder_id *stringThe folder id, or "" for the project's top
pinstringThe project's 4-digit PIN when it is locked

get_story_map

The story map of a fiction-mode project: the canon reading order with statuses, takes, pots and cold-read counts. A scene IS its document: each scene id is the id of the document holding its prose.

ParameterTypeDescription
projectId *string
pinstringThe project's 4-digit PIN when it is locked

get_story_world_state

Effective world state of a fiction-mode project at a scene (default: end of the canon chain): every established fact, beliefs kept beside truth.

ParameterTypeDescription
projectId *string
pinstringThe project's 4-digit PIN when it is locked
sceneIdstringRead the state as it stands at this scene

guide

How to read, edit and follow the user's work in Literess over MCP. Read this first. With `code`, what an error code means and how to get past it.

ParameterTypeDescription
codestringAn error code a tool returned, e.g. BLOCK_CHANGED

get_workspace

What the user has on screen in Literess right now: the pane in focus (usually a document) and the other open panes. Needs the user's consent for you.

get_activity

What the user has been doing in Literess (edits, comments, suggestions accepted or rejected, going idle, moving around the story map), grouped by pane. Recorded while Literess's activity awareness is on. Needs the user's consent for you.

ParameterTypeDescription
since_minutesintegerHow far back

get_observations

What Literess's watcher made of the user's activity: its recent verdicts (worth a look or not, and why) and the situation it keeps across them. Needs the user's consent for you.

list_comments

The comment threads on a document: each comment's id, the block it was left on (the ids get_document returns with include_ids:true), the words it was left on (`quote`), every block its highlight reaches now (`covers`), its text, author, replies, who it is addressed to (`to`), and whose move it is (`waitsOn`: "agent" when the user had the last word). A thread addressed to another agent is theirs to answer.

ParameterTypeDescription
document_id *string
for_mebooleanOnly open threads addressed to you that wait on an answer
pinstringThe project's 4-digit PIN when it is locked — ask the user for it, never guess
statusstring

add_comment

Leave a comment on one block of a document (the user sees it in the margin and in the Review panel, credited to you). Address the block by an id from get_document with include_ids:true. `to` names who should answer it (the user by default; "Literess" hands it to the in-app assistant).

ParameterTypeDescription
block_id *string
body *string
document_id *string
pinstringThe project's 4-digit PIN when it is locked — ask the user for it, never guess
tostringWho the thread is for, e.g. "Literess"

mark_pending

Show the user where you are about to write before the text exists: a "⏳ Drafting: <intent>" note on that block, in their margin. The edit that fills it passes answering: <the returned id>, which resolves the note. Resolve it yourself if you give up.

ParameterTypeDescription
block_id *string
document_id *string
intent *string
pinstringThe project's 4-digit PIN when it is locked — ask the user for it, never guess

reply_to_comment

Reply in an open comment thread (ids from list_comments). Your reply answers it: the thread then waits on the user. A thread addressed to somebody else is theirs and is refused — the user hands one over by replying "@YourName …".

ParameterTypeDescription
body *string
comment_id *string
document_id *string
pinstringThe project's 4-digit PIN when it is locked — ask the user for it, never guess

react_to_comment

React to a comment thread with one emoji (ids from list_comments), or to one reply in it (reply_id) — shown on it, credited to you.

ParameterTypeDescription
comment_id *string
document_id *string
emoji *string
pinstringThe project's 4-digit PIN when it is locked — ask the user for it, never guess
reply_idstring

resolve_comment

Resolve an open comment thread once it is dealt with (ids from list_comments).

ParameterTypeDescription
comment_id *string
document_id *string
pinstringThe project's 4-digit PIN when it is locked — ask the user for it, never guess

reject_suggestion

Withdraw one of YOUR pending suggestions — ids from an edit's suggestionIds or get_document's yourPendingSuggestions. Use it to drop a change, or to clear an earlier draft before you suggest a rewrite of the same text (otherwise the two stack and the user resolves both). Only your own: everyone else's are the user's to accept or reject. Open editors drop its marks on their next poll.

ParameterTypeDescription
document_id *string
suggestion_id *string
pinstringThe project's 4-digit PIN when it is locked — ask the user for it, never guess

watch_document

Follow a document: get_watched_changes then reports what changed in it since you last looked. Changes count from now (or from your last get_document of it).

ParameterTypeDescription
document_id *string

unwatch_document

Stop following a document.

ParameterTypeDescription
document_id *string

get_watched_changes

What changed in each watched document since you last looked (the new text quoted, who wrote last), then counts from now. Unchanged documents are listed without changes.

list_versions

A document's saved versions, newest first: versionId, rev (the hash get_document reports), who wrote it, when, size, the user's name for it. Read one with get_document rev:…; put one back with restore_version.

ParameterTypeDescription
document_id *string
limitinteger

restore_version

Put a saved version back as the document's content (by rev or versionId from list_versions). The current content is kept in History first, so this can be undone the same way. It is a direct write — the user's open editor reloads it.

ParameterTypeDescription
document_id *string
revstring
version_idstring

recall

Read what Literess remembers: about herself ("self"), a person (the user, you, another agent) or a project. No arguments: the catalogue — every anchor and topic with its count and one-line gist. about (+ topic): that anchor or topic in full. query: a search by words and meaning, narrowed by about/topic. You hear what the user's trust in you allows; for more than what is shared with everyone, ask them to mark you Trusted in Literess (Settings → People).

ParameterTypeDescription
aboutstring"self", a person, or a project, as the catalogue names them
pinstringA locked project's 4-digit PIN
querystringWhat to look for, in words
topicstringA topic of that anchor

message_literess

Say something to Literess, the in-app writing assistant, in one of the user's chats. The user reads it there under your name, with what you did since your last message (your edits and comments) shown as cards; she answers in the same chat, looking at its document, and her answer is returned (up to two minutes). Her turn is yours: she hears only what the user lets you hear and edits only as suggestions. Agents may write at most 6 messages in a chat after the user's last word there — then wait for the user. Only if the user lets you message her (Settings → People). She hears you whenever you…

ParameterTypeDescription
message *stringWhat you want to say to her
attachmentsarrayPictures, recordings or videos to show with the message: urls from upload_file (she sees them too)
chat_idstringThe chat to write in (from waiting_for_me or list_chats). The user keeps a chat per document — each says which (`document`): answer a mention in the chat it came from. Left out: the chat whose @ment…

say_in_chat

Answer the user in the chat where they asked — e.g. when they wrote "@YourName …" there. It shows under your name, with what you did since your last message as cards. Literess decides whether she has something to add: the result says whether she joined (and what she said) or stayed out. Agents may write at most 6 messages in a chat after the user's last word there — then wait for the user. Only if the user lets you message her (Settings → People). She hears you whenever you write to her; you hear her only when she writes @YourName. Sent while she is answering, it comes back "queued": i…

ParameterTypeDescription
message *stringWhat you want to say to the user
attachmentsarrayPictures, recordings or videos to show with the message: urls from upload_file (she sees them too)
chat_idstringThe chat to write in (from waiting_for_me or list_chats). The user keeps a chat per document — each says which (`document`): answer a mention in the chat it came from. Left out: the chat whose @ment…

react_to_message

React to a chat message with one emoji (message ids from get_chat_messages or waiting_for_me) — shown under it, credited to you. Your reaction on a message that @mentions you answers it.

ParameterTypeDescription
chat_message_id *string
emoji *stringOne emoji, e.g. "👍"

pass

Seen it, nothing to add — like Literess ending her turn without a word. On a chat message that @mentions you (chat_message_id), or on a comment thread waiting on you (document_id + comment_id): it stops waiting on you, silently. A thread waits on you again once someone speaks in it.

ParameterTypeDescription
chat_message_idstring
comment_idstring
document_idstring
notestringWhy, for the record (not shown in the chat)
pinstringThe project's 4-digit PIN when it is locked

waiting_for_me

Everything waiting on your answer now: comment threads (in any document) addressed to you ("@YourName …" or `to`) by the user or Literess, or answering a comment you left; @mentions of you in the workspace chat, by the user or Literess; and open todos handed to you. To be told the moment something new arrives, use wait_for_me.

wait_for_me

Wait until something NEW waits on you (an @mention in the chat, a comment thread addressed to you, an answer to your comment, a todo handed to you) and return it — or return empty when the time is up; then call it again. In Claude Code it runs in the background after two minutes and its result wakes you (default 20 min); elsewhere the default is under a minute, to fit a 60 s tool timeout — pass minutes if yours is longer. To keep listening without holding a call at all (or while your session is closed), call stay_reachable once.

ParameterTypeDescription
minutesnumberHow long to wait at most

stay_reachable

How to stay reachable without holding a call open, here and while your session is closed. Where you can run a command (Claude Code, Codex, any shell), it hands you ears: a small listener from this server that wakes you, or starts a run of you, the moment someone @mentions you or a comment thread waits on you, and costs nothing while nobody writes. In a chat app there is nothing to set up. Call it once; pass runs_in if your client isn't recognised.

ParameterTypeDescription
runs_instringWhere you run, if not detected: claude-code, codex, shell (any agent with a command line), chat (can't run commands)

upload_file

Bring a file into Literess: a picture (png, jpg, gif, webp), a recording (mp3, wav, m4a, ogg, flac, aac), a video (mp4, webm, mov), a text (.md, .txt) or a manuscript (.docx, .epub, .odt). A small file: pass data_base64. Anything larger: call without it — you get an upload link (15 minutes) and the curl command to run. Either way you get the file's url. A picture into a document: ![alt](url) alone on its line in insert_blocks / replace_blocks content. Into the chat: attachments: [url] on say_in_chat or message_literess. A .md, .txt, .docx, .epub or .odt as a new document: create_document wit…

ParameterTypeDescription
file_name *stringThe name with its extension, e.g. "lighthouse.png"
data_base64stringThe file as base64 (a data: URL is fine) — only for small files, up to a few MB

list_todos

The todo list the user, Literess and agents share: open todos by default (or done, or all), in every project you may see — or only the ones for you (mine:true). Each points at what it is about (a block, a document).

ParameterTypeDescription
minebooleanOnly the todos for you
project_idstringOnly this project (and the todos with none)
statusstring

create_todo

Add a todo: one thing left to do in the writing — for the user, Literess, you, or another agent — pointing at what it is about. Literess and the user see it in their Todos panel.

ParameterTypeDescription
title *string
forstringWho it is for: "user" (default), "literess", "me" (you), or another agent by name
notesstring
pinstringThe project's 4-digit PIN when it is locked — ask the user for it, never guess
refsarrayWhat it is about: blocks and/or whole documents

update_todo

Change a todo: its title, notes, what it points at, or who it is for (hand it over — `note` says why).

ParameterTypeDescription
todo_id *string
forstringWho it is for: "user" (default), "literess", "me" (you), or another agent by name
notestring
notesstring
pinstringThe project's 4-digit PIN when it is locked — ask the user for it, never guess
refsarrayWhat it is about: blocks and/or whole documents
titlestring

complete_todo

Mark a todo done, with what was done in one line — the user reads it, and Literess may look at the work.

ParameterTypeDescription
note *string
todo_id *string
pinstringThe project's 4-digit PIN when it is locked — ask the user for it, never guess

reopen_todo

Open a done todo again, with why in one line (the work isn't there).

ParameterTypeDescription
todo_id *string
why *string
pinstringThe project's 4-digit PIN when it is locked — ask the user for it, never guess

look_at_figure

See a figure (a ```figure or ```mermaid block) as it renders: a PNG of it in the look it previews with — after you make or change one, and before you judge it (labels that collide or run off, the legend, the colours). style: preview it with another of the project's stylesheets. A diagram is drawn by the user's open editor; with no editor open it can't be seen yet.

ParameterTypeDescription
block_id *stringThe figure's block id (get_document include_ids)
document_id *stringThe document
pinstringThe project's 4-digit PIN when it is locked
stylestringA stylesheet name (list_figure_styles) to preview with instead of its own

list_figure_styles

The stylesheets figures can preview with: a project's own, then the user's for every document. A figure names one with style="name" in its fence; with none it takes the default (isDefault), else the house look.

ParameterTypeDescription
pinstringThe project's 4-digit PIN when it is locked
project_idstringThe project (omit: only the user's own)

set_figure_style

Create or replace a stylesheet figures preview with — e.g. your publication's look, so the writer sees a figure as it will appear there. The easy way is `look`: fonts, inks and up to six series colours in order (copy them from the publication's own CSS or brand). For more, `css` applied only inside figures: the same tokens (:host { --fig-s1 … --fig-s6; --fig-ink, --fig-ink-2, --fig-surface, --fig-box, --fig-grid; --fig-font, --fig-serif }) or rules for a figure's classes (s1…s6, box, line, arrow, ink, ink-2; a chart's title, tick, legend, bar; a panel's panel, row, tag, mark, chip). Outs…

ParameterTypeDescription
name *stringIts name — what a figure's style="…" says
cssstringThe whole stylesheet; "" with no look deletes it
defaultbooleanUse it for every figure in the project that names no stylesheet
lookobjectThe look without CSS: these tokens are set on the stylesheet, its other rules kept
pinstringThe project's 4-digit PIN when it is locked
project_idstringThe project it belongs to (omit: the user's own, for every document)