Skip to content
DocumentationThe .mmap format

The .mmap format

A map is a graph: blocks placed on an infinite canvas, joined by links. mmap.v1 is the one portable way to describe that graph. The clipboard uses it, an assistant connected over MCP uses it, and an export produces it — there is a single import path, so a map built by a script and a map built by pasting arrive the same way.

You need this page if you are generating maps from somewhere else. You do not need it to use the app, and you do not need it to connect an assistant — that already knows the format.

Shape#

{
  "version": "mmap.v1",
  "kind": "fragment",
  "nodes": [],
  "edges": []
}

version must be exactly "mmap.v1". Anything else is refused. This skeleton is the shape and not a call that works: a document that asks for nothing is refused, so give it at least one node.

kind is "fragment" or "board". A fragment is a batch of blocks being added to a map — which is what you almost always want. A board is a whole map, and it is what an export produces and a restore consumes.

The format is open JSON: anything that can read JSON can read a map.

A file saved from the app (map.corlecti.com) also carries an optional top-level board key beside the blocks and links: { "name": "…", "readme": "…" }. The name is always there; the README is there only when the map has one, the owner has not switched it off and the copy covers the whole map. A file saved from an embedded map holds only the blocks and links, with no board key. Both keys are optional, and a file without board is as valid as it ever was.

Opening a file#

The app opens a .mmap file as a new map, or adds it to a map like a paste. A file is untrusted input, so it is judged as a whole before anything is written, and a refused file creates nothing:

  • It is at most 2 MB, 500 blocks and 1000 links.
  • It names nothing outside itself: no deletedNodeIds or deletedEdgeIds, no sourceId or

targetId, no before, and no parent that is a block id: a fragment refuses any uuid parent, and a parent in a board file must name a ref that is in it. A file built for apply_map to attach to a map is therefore not a file to open.

  • Block and link ids are ignored; every block and link is created fresh.
  • A portal whose linkedBoardId is a map the receiving account does not hold arrives without a target,

and the person is told how many.

  • Solid links must not form a loop. A file whose solid links lead back to where they started (for example

two blocks linked to each other) opens as a new map, but is refused when added to a map ("Solid links in this file form a loop…").

  • A picture (imageId) is a reference, not the image. Opened as a new map, it is copied when the person

opening the file may read the map it came from and may see that picture (one sent only in a direct conversation stays there); added into a map, only from a map of that map's owner that the person may read. Otherwise a picture block reads "This picture has been removed".

  • The board.readme becomes a new map's README, hidden from visitors of a published map until its owner

turns it on in Share. The file's README is not added into a map — a map keeps its own README.

Blocks#

A node carries what the block says and where it goes: a title, an optional short description, an optional Markdown body, and a position. Give every node a ref — your own name for it, unique within the document — so that links can point at it.

Position is optional, and leaving it out is usually the right choice: with no position, the map reads order from the order you wrote the nodes in instead, and lays them out itself. If you do send positions, send one on every node: when only some carry one, the map sets those aside and seats every node from the order you wrote, and the reply says so. A saved .mmap file in which any block has no position, opened as a new map, is arranged as a tree like a map an assistant builds (the positions the other blocks carried are set aside); a file in which every block has one keeps them. Dropped into a map it lands like a paste.

Leave colour to the map too. A node may declare a role — what it is in the map — and the map turns that into a colour under whatever theme its owner chose. That is why two maps built from the same document can look different and both look deliberate.

An edge names each end exactly once, in one of two ways:

  • source and target, naming a ref in the same document — a link between

two blocks you are adding now.

  • sourceId and targetId, naming blocks already on the map — which is

how a map too big for one call is built branch by branch. Those ids come from reading the map first, and they are checked against it before anything is written.

A link may carry a label, a kind and a weight. Weight is the strength you are declaring, and it becomes how thick the line is drawn.

What happens on import#

An apply_map call runs these steps in this order. A document that fails one is refused whole, and the reply names the reason.

  1. The document is read against the schema. version must be "mmap.v1".

A field the schema does not know is dropped, not passed through. That includes the board envelope of a saved .mmap file: its name and README are never read here. One is refused instead: part, which a get_board read with window puts on a block whose body it shortened. Read that block again without window before you copy it.

  1. The map must be one the key can write to. A map outside the key's reach

answers "not found", the same as a map that does not exist.

  1. Your shorthand is expanded. Each parent becomes a solid structural

link, and a node sent with no position or size is given both by the map.

  1. Roles become colours under the map's own theme, and a branch takes the

colour of the block it hangs under. A colour that cannot be rendered is replaced rather than refused.

  1. Placement is resolved. The map seats the blocks from the order you wrote

them in. A block that would land on top of something is moved to the nearest free slot; this never refuses the call, and the reply names the blocks that moved.

  1. The document is checked. It must ask for something (a document with no

nodes, no links and no deletions is refused, so a retry loop cannot mistake it for success); every ref is unique; every ref a link names exists in the document; no link joins a block to itself; solid links form no cycle; and a "board" document names no block by sourceId or targetId.

  1. Caps are enforced: 500 blocks and 1000 links per call.
  2. Ids are checked against the map. Every sourceId, targetId and parent

id must be a block on this map, and every linkedBoardId one of its owner's maps. An id in deletedNodeIds or deletedEdgeIds that is not on this map is reported back as missing and never acted on.

  1. Everything is inserted in one transaction. All of it lands, or none of it

does.

  1. You get back the id of every block, and of every link you wrote, each

beside the ref you gave it, so you can refer to what you just created; the links drawn by parent are counted in parentEdges. Notes on what the map decided follow in a second text item.

Steps 3 to 5 are worth reading twice if a generated map has ever come out looking assembled rather than deliberate. Say what you mean — a sensible order, a role — and let the map's own settings do the rest.

The full schema#

Every field a node or a link may carry, sent to the apply_map tool over MCP (MCP tools) as its document argument.

A node:

  • ref (string, required) — your own name for this node, unique in the

document, so a link can point at it.

  • id (uuid, optional) — set by the map and present in a document you read

back; you need it only to name a block in deletedNodeIds.

  • title (string, required)
  • metaDescription (string or null, optional) — one line.
  • content (string or null, optional) — the body, in Markdown.
  • parent (string, optional) — the ref of another node in this document, or

the id of a block already on the board. Drawn as a solid, structural link — a tree needs no edges array at all when every node names its parent this way.

  • before (uuid, optional) — only on a node whose parent is a block already

on the map: the id of one of that parent's existing children. The new block is placed in front of it instead of last.

  • position ({ x, y }, optional) — on a map set to Manual arrangement your

coordinates are kept; on the default, Assist, they are kept when they are real positions (they span more than one block) and otherwise only set the order; on Enforce the map always sets the pixels. Omit it and let position come from the order you wrote nodes in instead.

  • size ({ width, height, maxHeight? }, optional) — omit it and the map

sizes the block from its role.

  • role (one of "root", "phase", "task", "note", "risk", "milestone", "reference", optional) — what the block is; the whole branch

under it inherits the role's colour, so set it on a branch head rather than on every node.

  • color, bgColor (string or null, optional), and their per-theme pairs

colorLight, colorDark, bgColorLight, bgColorDark — leave these out and let the role and the map's theme decide. A colour you do send is a "#rrggbb" hex, a token value, or a token id of the field's kind — a fill id such as "mint" for the bgColor family, a line id such as "amber" for the color family (any case, in a document). Anything else is dropped, and apply_map's reply names the block; a file or a paste drops it silently.

  • blockVariant ("default" | "parent" | "portal" | "image",

default "default") — "parent" draws it as a heading for the cluster under it; "portal" and "image" are the two values whose fields follow.

  • styleInherited (boolean, default true)
  • isActive, isTextExpanded (boolean, optional)
  • linkedBoardId (uuid or null, optional) — the map a "portal" block opens.

It must be one of this map's owner's maps; any other is refused and nothing is written.

  • imageId (uuid or null, optional) — the picture an "image" block shows. It

is a value you read out of get_board; no tool uploads a picture.

A link, naming each end exactly once:

  • ref (string, required)
  • id (uuid, optional) — set by the map and present in a document you read

back; you need it only to name a link in deletedEdgeIds.

  • source / target (string, optional) — a ref in this same document.
  • sourceId / targetId (uuid, optional) — a block already on the board.

Give each end either the … form or the …Id form, never both, never neither.

  • label (string or null, optional)
  • kind ("default" | "goal", default "default") — "default" is

solid and structural (source contains target); "goal" is a dashed cross-reference. Reach for "goal" unless you are deliberately adding a level to the tree.

  • color (string or null, optional) — a hex, a token value or a line id, as

for a block's color; anything else is dropped.

  • direction ("none" | "start" | "end" | "both", default "end")
  • weight (number, 0–10, optional) — the declared strength; becomes the

line's thickness.

A document also carries deletedNodeIds / deletedEdgeIds (arrays of uuid, optional) — ids on the board to remove before the rest of the document is inserted, in the same transaction. Over MCP, deletedNodeIds holds at most 500 ids, and a document that deletes is refused, with nothing written, when a restore point of the map could not be taken first.

A worked example: two blocks and a connection by id#

Adding a new block to an existing map, and connecting it to a block that is already there. The id in targetId is a placeholder that cannot exist: replace it with a block id from get_board, or the call is refused as foreign_block: "Block … is not on this board".

{
  "version": "mmap.v1",
  "kind": "fragment",
  "nodes": [
    { "ref": "risk1", "title": "Vendor contract expires before renewal", "role": "risk" },
    { "ref": "task1", "title": "Renew the vendor contract", "parent": "risk1" }
  ],
  "edges": [
    { "ref": "e1", "source": "task1", "targetId": "00000000-0000-4000-8000-000000000000", "kind": "goal", "label": "mitigates" }
  ]
}

risk1 and task1 are created in this call and wired to each other by their document-local refs, with task1 hanging under risk1 through parent. The new edge e1 then reaches out to the block that targetId names — the "attach to what is already on the map" form, which is how a map too large for one call is built branch by branch.

Building versus editing#

Sending a document is for building: adding a batch of new, related blocks and links at once. It adds and never edits a block or link in place; the two deletion lists are the only removal.

For editing something that already exists — one field on one block, one field on one link, or a single new connection between two blocks that both already exist — use the single-item operations instead (MCP tools). They take a real id and touch exactly the one thing you name. Never delete a cluster and rebuild it to change one title.

Caps, and what they are for#

500 blocks and 1000 links per call. They bound one call, not one map — a large map is built in several calls, which is what the "attach to a block already on the map" form of a link exists for.

Where the authoritative rules live#

A connected assistant can ask for the full writing guide at any time with the list_docs and get_doc tools (MCP tools). The rulebook's sections are overview, nodes, edges, layout, style, constraints, recipes, controls. That corpus is the rulebook this page summarises, and it is the one that is kept in step with the importer.