← All guides

Guide for agents. Over MCP: help with topic structure.

Books, pages and links

Worlds. A world is the wiki and every book written in it. world_list shows the author's worlds; pass world (id, title or a unique part of the title) to any tool when there is more than one. world_create starts an empty, unrelated one and world_rename retitles the current one, both only when the author asks. A world's title and its books' titles are separate: a new world takes its first book's title, but world_rename changes only the world's and page_update with a title on a book changes only that book's, even when the world holds one book of the same title. Rename both only when the author asks for both.

Books. A book is a page of type book that contains its chapters, so it has a slug and can be linked ([[the-salt-road]]). A world with no book page is simply one book. book_list shows the books in series order. book_create gives a new world its first book, or starts another one in the same world (a sequel, a prequel, a spin-off): it shares every page and the one timeline. book_outline and book_export take book; page_create with type chapter takes book to say where the chapter goes. Retitle a book with page_update; its place in the series is core.order. A book whose status is final is published: its chapters and scenes do not change (text, details, or which are in it and in what order: page_update, page_archive, page_create into it and contains ties are refused), so do not propose changes to its text. Its own page (details, pen name, plan) stays editable. Publishing and starting a new edition are the author's, on the website.

A book's page and publishing. On the website a book's page (the first row of the Manuscript) holds everything about the book as a whole, and the Publish page turns it into files. You can fill in what they use with page_update on the book, under core: pen_name (one of the author's pen names; empty for their own name) and publish, with subtitle, series_name, blurb, keywords (up to 7, the words readers type in a store's search), isbn_ebook, publisher, dedication, epigraph, acknowledgements, copyright (the copyright page in full; leave it out and MechaSquid writes one from the details) and about_author (kept with the author name, so every book under it has it), and, only when the author says, what the files do with web links in the text: links_ebook (words, the default, or keep to leave them clickable) and links_print (words, the default, or footnote to print each address at the foot of its page). Each field you pass replaces that field only; empty text clears it. MechaSquid itself never writes the blurb: when the author asks, draft it from book_outline (a hook, who it is about, what is at stake, no spoilers past the first third), offer versions, and save the one they choose. The cover is made in the cover studio on the website (the Publish page's Cover step, or the book page): the title and the author's name are set over a picture in MechaSquid's own type, so a picture for a cover should have no lettering and a quiet area where the words go (the top third for most layouts; the studio's own "Make one" names it for the layout chosen). Its picture is the book page's main picture unless the author chose another there: picture_add on the book with set_as_main when the author wants a new picture as the cover (a tall one, 2 by 3; stores show the cover at 1600 by 2560). The design itself is the author's: there is no tool for it. page_get on the book shows what is set, including publish.made, publish.editions (the files made and the editions released, each with its dated corrections) and publish.state: editing, checking (locked while the author proofreads the files), released (locked) or correcting (open for small fixes under the same edition). While the book is checking or released its chapters and scenes refuse changes, as a published book's do. Making the files and every move between those states (Ready to check, Unlock to correct, Release, Fix errors in this edition, Release the corrected files, Start a new edition) are the author's, on the website: you cannot publish or unpublish a book; book_export with format epub gives the book as prepared there.

Chapters and books hold no text. The book's text is its scenes' text: Write mode, exports and shared copies read only scenes, and a chapter's or a book's page shows its scenes or chapters instead of text. So page_create, page_update and revision_submit refuse content for a chapter or a book. Prose goes into a scene; what a chapter or a book is for (premise, what should happen) goes into its plan (book_create takes plan for this). A book's blurb is a store detail (next paragraph), not its plan.

Nodes. Everything is a node: book, scene, chapter, map, character, place, faction, item, event, rule (a rule of the world), plot (a thread), idea.

  • page_list gives compact cards by type, in an order that editing does not change (pass next_cursor as cursor for the next page); page_get gives one in full (id or slug); page_search finds by meaning.
  • page_create makes pages: pages is a list (one page is a list of one, at most 30), and ties makes the relationships between them and existing pages in the same call, a page of the call named by its title. Everything is checked first; if anything is refused nothing is made and the answer lists every problem. page_update changes core fields at once: title, status (draft, active or archived; final means a published book, and only the author publishes, on the website: setting final, or changing a published book's status, is refused), importance 1 to 3, story_time (a label and an order number), pov (the point-of-view character, on a scene or a chapter: slug, id, title or other name, stored as the slug; a name that is no character is refused; a chapter's is the character of every scene in it that names none, so a chapter told through one person needs it once), pov_mode (the point-of-view style on a book, chapter or scene: first, third_limited, third_omniscient, third_objective or second; unset, a scene follows its chapter, then its book, so set it once on the book and only where a chapter or scene differs; a character goes with first person and limited, none with omniscient, objective or second person; objective is the camera's eye: only what can be seen and heard, never anyone's thoughts; changing viewpoint is the author's call, never something to fix), tense (past or present, on a book or a chapter only: a chapter's wins over its book's, as for a present-tense prologue, and scenes follow their chapter; unset means the author has not chosen; set it only when the author says so; scene_context gives the style, character and tense that apply to a scene, voice_brief the book's), aliases (other names the text uses), voice (how a character speaks), plan (scenes, chapters and books: what should happen there; this is the outline, it is never exported, and book_outline returns it, so read it before drafting a scene and write down only what the author decided). content follows the author's level for the page's zone (the manuscript, or world pages): at "direct" it is written at once, below that it is filed as a pending revision; the answer says which.
  • page_archive archives; nothing is destroyed.
  • A slug is set once from the first title and never changes, so renaming a page never breaks a link. A link that shows the page's own name ([[slug]]) shows the new one by itself, but the old name written as plain words, or as a link's own words, stays: page_update with a new title answers old_name_in_texts (how many times) when that happens. The author changes them all at once, one undo, on the website with Rename everywhere (the page's Details), which can also keep the old name as another name; tell them so rather than rewriting the texts one by one, unless they ask you to.
  • page_summary stores your summary, keywords and open questions for a page. These are your notes; the author's fields are never touched by it. A short card drawn from the text, never a place for facts the text lacks: when the text changes, MechaSquid writes the summary again from the text alone. Everything the author said goes in the page's text.

Manuscript order. book_outline lists chapters in order with their scenes, and scenes not yet in a chapter as unfiled. A scene belongs to a chapter through a contains edge with an order. Give page_create a chapter (and optionally position) to make the scene in its chapter in one call; tie_create from the chapter to the scene files an existing one, moving it out of the chapter (or book) that held it, since a scene sits in one chapter and a chapter in one book. scene_split and scene_merge restructure without changing a word. Never put a boundary in a scene's text: a rule (---, ***, ___) is a scene break and a #/## heading (or a line underlined with --- or ===) is a chapter break, so page_create, page_update and revision_submit refuse scene text that has one. A section break inside a scene is a line with ⁂.

Who is in a scene. A character (or place, item, thread) is in a scene when the scene's text links to them, or when a tie joins them: tie_create from the scene to the character, kind appears_in, optionally with a few words ("arrives late"). The tie starts at the scene; the other way round is flagged by story_lint. For a planned scene with no text yet, the tie is the way. The POV character counts as present.

Links and relationships. [[slug]] or [[slug|shown text]] in content links to a page; scene_link_names adds such links to existing prose and refuses any change to the visible words. Links become edges by themselves. page_create and page_update return names_to_link for names of existing pages that the text leaves plain, each with how sure MechaSquid is (confidence): link the ones you meant. MechaSquid links names it is sure of by itself (the author's setting) a few minutes after the last change, and shows the author the rest; story_lint with min_severity: "info" lists pages that still have some (unlinked_mention). A plan is plain text in a box: write names in it plainly, and MechaSquid ties the plan's page to the pages it names (ties with source plan). Other relationships (related, family, membership, and so on) are made with tie_create, optionally valid only between two story times (valid_from, valid_to). tie_list and tie_neighbourhood read them. Edge weights are computed; do not try to set them. tie_update and tie_delete change or remove one of those; a new kind must fit the two pages, as with tie_create. Ties made from links and plans (source wikilink or plan) follow the text: change the text to change them.

Export. book_export builds the manuscript as Markdown or EPUB and returns a private link that lasts an hour. With format docx it is a Word file in standard manuscript format, the one literary agents and editors ask for: 12 pt, double-spaced, a running head with the author's surname, a short title and the page number, each chapter on a new page, # between scenes, and a title page with the word count rounded. The author's contact details are never in the copy this tool makes: they go on the title page only when the author makes the manuscript on the website (Settings, or the Submission card on the Publish page), from their Account ("For submissions"). For the file they will send, point the author there; never type contact details into the book. Pictures appear as "[Picture: caption]". MechaSquid writes no synopsis or query letter; when the author asks, draft them from book_outline for the author to rewrite and send themselves.

Pictures. Any page can carry pictures: a portrait, a place, a map (page type map), cover art on a book's page. picture_list shows what a page or the world already has. picture_add puts one on a page: send the file as data_base64, or a public https url (links to pictures made inside a chat app usually do not open from outside, so prefer the data). If you generated the picture, pass your prompt too, so the author can adjust it and ask again. The first picture becomes the page's main one; picture_main changes that, only when the author asks. Removing pictures is the author's, on the website. Before illustrating, read the page and picture_list for the people and places in it, so a character looks the same from one picture to the next; ask the author for the world's art style if the pictures so far do not make it plain.

Pictures in the text. A picture can also stand inside a page's text, a scene's above all: a map at the front of a book, a diagram in a non-fiction chapter, art that opens a chapter. Write it on a line of its own as ![caption](loom-image:ID), with the id from picture_list or picture_add (which answers with the exact line). Never the picture's url: it carries a key and changes. MechaSquid refuses text that names a picture the world does not have. The caption is optional; it shows under the picture and is read aloud by screen readers. A picture is always the width of the text, with no size or float. It goes into the EPUB and Markdown exports and into shared copies. A book carries at most 200 different pictures; GIFs are not taken anywhere.

Web links in the text. A link to a web page is an ordinary markdown link, [the words](https://example.org/page) (https, http or mailto; nothing else is ever made clickable). The author sees the words, marked as a web link, and opens the address from them. A shared copy and the Word file keep only the words, always; the ebook and the paperback keep only the words unless the author chose otherwise on the Publish page (links_ebook, links_print, above). Links to the world's own pages stay [[slug|words]].

Books, pages and links · MechaSquid docs