New Bring your own storage. Keep your diagrams in your own private GitHub repository, on Pro and Team.Bring your own storage on GitHub, for Pro and Team. Learn more about bring your own storage

MCP tools

The Zindex MCP server is at https://api.zindex.ai/mcp. There is nothing to install. Your client connects over HTTPS (Streamable HTTP), and signs you in with your Zindex account (OAuth) or sends an API key. The tools run the same code as the REST API, so a diagram saved here is the same diagram over REST and in every other client.

Every tool needs a Zindex account. When your client connects, it opens a Zindex page where you sign in and choose Allow. A new password account verifies its email on that page first; GitHub and Google sign-ups are verified at once.

Nothing over MCP works without an account, checking and previewing a diagram included. Over REST, POST /v1/diagrams/validate and /v1/diagrams/preview do those two without one.

No tool exports a diagram’s whole history or the whole workspace, because a tool’s result goes into the model’s context and a whole history can run to megabytes. A diagram’s history downloads from its page on the dashboard, and every diagram at once from Settings → Account; the REST API has both, as GET /v1/diagrams/{id}/export and GET /v1/workspace/export.

ToolDoes
diagram_findLists the workspace’s diagrams
diagram_getReads a diagram as an outline, scene JSON or Mermaid, at any version
diagram_validateChecks a scene or Mermaid text without saving it
diagram_createSaves a new diagram
diagram_editChanges a diagram, making the next revision
diagram_renderReturns SVG and PNG links for a version, or for a share link or a published diagram’s link
diagram_historyLists versions, or compares two
diagram_deleteDeletes a diagram, or restores one deleted in the last 24 hours
diagram_sharePublishes or unpublishes a diagram, makes or revokes share links, reports a version, or sends Zindex feedback

Sign in with your Zindex account

Clients that support MCP sign-in need only the URL https://api.zindex.ai/mcp:

The Zindex plugin installs this server together with the Zindex skill, the guide agents follow when they use the tools, in Claude Code, VS Code, Cursor and Antigravity CLI. In Claude it adds the skill only. The plugin’s README has the steps for each app.

To add the server in Claude, open the plugin under Customize → Plugins, on claude.ai or in the desktop app. On its Connectors tab, add Zindex and connect it. On Claude’s Team and Enterprise plans, an Owner adds it first.

On the Zindex page you choose the workspace the app works in, when you belong to a team workspace, and its access, then get a prompt to try once the app is connected. When your address lets you join a team workspace on Auto, the page offers to join it first, and the app then works there. With Read and write, the app can find, read, save, change, render and delete the workspace’s diagrams, make them public, make share links to them, report a problem with one to Zindex support, and send Zindex feedback, acting as you. With Read only, it can find, read, render and compare them, and every change answers READ_ONLY; a viewer in the workspace, or a client that asks for the OAuth scope diagrams:read alone, gets read only. An app works in one workspace. To have it work in another, open that workspace from the workspace menu at the top of the page, then move the app under Dashboard → API keys → Connected apps (Move here): it stays signed in. To work in two at once, connect it once for each (Workspaces). Every app you allow is listed there with its workspace, where you can disconnect it. Disconnecting it, resetting your password, deleting your account or leaving its workspace signs it out, and the workspace’s owners can disconnect it too. ChatGPT can’t send a key, so it connects only by signing in. claude.ai and the Claude apps sign in too, unless the organization has Claude’s request headers, a beta that can send one. If another client can’t complete sign-in, connect it with an API key, and tell us through the contact page.

Connect with an API key

Clients that can send a header, such as Claude Code, Cursor and VS Code, can use an API key instead of signing in. Sign up at zindex.ai/signup/, verify your email (GitHub and Google sign-ups are verified at once), then create a key under Dashboard → API keys. Sign-up makes no key. Keys start with dsp_sk_. A key works in the workspace selected when it is made, with Read and write or Read only access, as a connected app does.

Claude Code:

claude mcp add --transport http zindex https://api.zindex.ai/mcp \
  --header "Authorization: Bearer dsp_sk_your_key"

Cursor, in ~/.cursor/mcp.json (or .cursor/mcp.json in a project):

{
  "mcpServers": {
    "zindex": {
      "url": "https://api.zindex.ai/mcp",
      "headers": { "Authorization": "Bearer dsp_sk_your_key" }
    }
  }
}

VS Code, in .vscode/mcp.json. VS Code asks for the key once and stores it:

{
  "servers": {
    "zindex": {
      "type": "http",
      "url": "https://api.zindex.ai/mcp",
      "headers": { "Authorization": "Bearer ${input:zindex-key}" }
    }
  },
  "inputs": [
    { "id": "zindex-key", "type": "promptString", "description": "Zindex API key", "password": true }
  ]
}

Other clients: point any client that supports Streamable HTTP at https://api.zindex.ai/mcp and send Authorization: Bearer <your key>. The server keeps no session state, so it works behind any proxy. It speaks both the 2026-07-28 protocol and the earlier 2025 revisions.

Run it locally with npm

For hosts that start MCP servers as local commands over stdio, such as Claude Desktop, use the npm package @zindexai/mcp. It forwards every call to this server, so its tools and instructions stay current without updating the package. It needs Node.js 18 or later and takes an API key from ZINDEX_API_KEY; sign-in is only for clients that connect over HTTPS. Without a key it still starts and lists the tools, but it doesn’t contact Zindex, and every tool returns AUTH_REQUIRED, naming ZINDEX_API_KEY.

Version 2.0.1 or later also passes on diagram_render’s picture to a host that shows MCP Apps views. Earlier versions pass on only the links: update the package, or remove the version pin.

In Claude Desktop’s claude_desktop_config.json (Cursor’s mcp.json takes the same entry), then restart the app:

{
  "mcpServers": {
    "zindex": {
      "command": "npx",
      "args": ["-y", "@zindexai/mcp"],
      "env": {
        "ZINDEX_API_KEY": "dsp_sk_..."
      }
    }
  }
}

In Claude Code:

claude mcp add zindex -e ZINDEX_API_KEY=dsp_sk_... -- npx -y @zindexai/mcp

Any other host: run npx -y @zindexai/mcp with ZINDEX_API_KEY in its environment.

VariableDefaultMeaning
ZINDEX_API_KEYnoneYour API key. Without one, every tool returns AUTH_REQUIRED
ZINDEX_MCP_URLhttps://api.zindex.ai/mcpThe server the package forwards to

ZINDEX_API_URL, the setting before 1.0, still works and means <url>/mcp.

Through the package, every confirmation comes back as CONFIRMATION_REQUIRED with a confirm token (Confirmation). A tool call the server refuses over HTTP comes back as a tool error with the refusal’s code and, when it has one, retryAfter in seconds: RATE_LIMITED for a 429, BUSY for a 503 and DRAW_TIMEOUT for a 422 when the answer names no code. Other HTTP errors reach the app as an error whose message carries the server’s answer.

Check it. npx -y @zindexai/mcp --version and --help don’t contact Zindex or need a key. When the server starts, it writes one line to stderr, which your host’s MCP log shows: Zindex MCP server vX.Y.Z running on stdio, connected to https://api.zindex.ai/mcp. Without a key, or with one Zindex refuses, the line says that instead of connected.

If it fails. AUTH_REQUIRED from the tools means the server started without a key, or Zindex doesn’t accept the key in ZINDEX_API_KEY because it is wrong, revoked or expired. The error and the start-up line say which. Create a new key at zindex.ai/dashboard/api-keys/, put it in the env block for this server, and restart the host.

“could not connect” at start, followed by “Rate limit exceeded” or “Zindex is busy”, means the server answered 429 or 503: wait the time it gives, or a minute, and restart the host. A version of the package before 2.0.0 also exits at start with “could not connect” when it has no working key: update it, or remove the version pin. Otherwise check the network, and ZINDEX_MCP_URL if you set it. If npx isn’t found, install Node.js 18 or later.

Upgrading from 0.x

Version 1.0 replaced the dsp_* tools with the diagram_* tools. The old names are gone, not aliased, so prompts and code that call a dsp_* tool by name need the new tool. Diagrams saved with 0.x keep their IDs and work with the new tools. A config pinned to a 0.x version of the old package, such as @zindex-ai/mcp@0.45.0, still lists the old tools, but every call fails: 0.x calls /v1/scenes, which answers 410 MOVED. Remove the pin so the config runs @zindexai/mcp, and restart the host.

How every tool behaves

Signing in. A client signs the person in with their Zindex account (OAuth 2.1; Sign in with your Zindex account) or sends an API key as Authorization: Bearer dsp_sk_... (or in X-API-Key). Every request needs one or the other, the first a client sends included. Sign-in tokens work only on /mcp; the REST API takes API keys.

A request without a working one gets an HTTP 401 before any tool runs:

The request hascodeWhat to do
No token or keyAUTH_REQUIREDA client that supports sign-in signs the person in as it connects; any other sends an API key
A sign-in token that is invalid, revoked or expired, or whose person is no longer in its workspaceOAUTH_TOKEN_INVALIDThe client gets a new token, signing the person in again if it has to
A key that is unknown, revoked or expired, or whose person is no longer in its workspace (API_KEY_REVOKED)API_KEY_INVALID, API_KEY_REVOKED or API_KEY_EXPIREDUse another key

The AUTH_REQUIRED answer carries WWW-Authenticate: Bearer resource_metadata="https://api.zindex.ai/.well-known/oauth-protected-resource/mcp", scope="diagrams". The other two carry error="invalid_token".

Workspaces. Every sign-in and key works in one workspace, and every tool acts on that workspace’s diagrams, except diagram_render with a share link or a published diagram’s link; no tool takes a workspace. With read-only access, or as a viewer in the workspace, every tool that changes or shares a diagram, or reports a problem with one, returns READ_ONLY, diagram_delete and diagram_share before asking the person. Don’t retry: with reason: "credential" the person connects again with read and write, or uses a key with write access; with reason: "role" they are a viewer, and a workspace owner can make them a member. diagram_history shows who saved each version (by) and how (credential), never which key (Workspaces).

IDs and keys. Wherever a tool takes id, you can pass the diagram’s ID (dgm_ plus 12 characters) or the key you gave it. A diagram in another workspace answers exactly like a missing one: NOT_FOUND, except in diagram_render, which also takes a share link, or a published diagram’s ID, from any workspace (diagram_render).

Versions. revision picks a version by number. asOf picks the version that was current at an instant: a date such as 2026-09-26 (the end of that day in UTC) or an ISO 8601 timestamp with an offset, such as 2026-09-26T14:00:00Z. Give one or the other, not both.

Results. diagram_create, diagram_edit and diagram_render return JSON as text and as structuredContent, except a diagram_render preview of an unsaved scene or mermaid, which returns the image. When an app shows diagram_render’s picture, its content can end with a short note for you (diagram_render). Every other tool returns text only.

Near a plan limit. A create, a saved edit, a restore (diagram_delete with undo) or a render that leaves the workspace at 80% or more of a plan limit carries LIMIT_NEAR in warnings (Limits: Before a limit). A render’s and a restore’s answer have warnings only then. Tell the person.

Errors. A failed call is a tool result with isError: true. Its text is JSON with code, error (a short message) and any details. Every code below comes that way except CONFIRMATION_REQUIRED, which isn’t a failure: nothing was done (Confirmation). Arguments that don’t match a tool’s input schema are refused before the tool runs, with plain text starting Input validation error: instead of JSON.

CodeMeans
AUTH_REQUIREDThrough the npm package only: no API key is set, or Zindex refused it. A client connected over HTTPS gets an HTTP 401 instead (Signing in above)
EMAIL_NOT_VERIFIEDVerify the account’s email before saving, deleting, sharing, reporting or sending feedback
NOT_FOUNDNo such diagram or version in this workspace; for a link in diagram_render, the link is revoked, ended or unknown, its diagram is private or deleted, or a version or latest link was asked for a version. Leave out revision, asOf and knownRevision with a version or latest link; otherwise the link has stopped, so ask the person for a new one
NO_REVISION_AS_OFThe diagram had no version yet at that instant
INVALID_REQUESTAn argument is wrong; error says which
INVALID_PROJECT_NAMEproject isn’t an allowed name: use 1 to 40 characters, not none or all, or leave it out. diagram_find takes none for the diagrams in no project and refuses all: leave project out to list every diagram
VALIDATION_FAILEDNothing was saved; errors lists each problem with a code, a one-line fix and, where it applies, the element
KEY_EXISTSThe key belongs to another diagram in the workspace, with different content or a teammate’s; id and revision name it
REVISION_CONFLICTThe diagram changed since baseRevision; see diagram_edit
REQUEST_ID_REUSEDThe requestId already made a different revision
PARSE_ERRORMermaid couldn’t read the text; error says where or what, and line and column are there when Mermaid names them (Mermaid: Refused)
UNSUPPORTED_DIAGRAM_TYPEThe Mermaid isn’t an erDiagram, a flowchart or a sequenceDiagram; send the diagram as a scene
IMPORT_TIMEOUT, IMPORT_FAILEDThe Mermaid parser took too long or stopped; send shorter text, or a scene
MERMAID_FAMILY_MISMATCHA Mermaid edit doesn’t fit the diagram’s family; see diagram_edit
INPUT_TOO_LARGEThe Mermaid text, or a feedback snippet, is over 64 KB
LIMIT_REACHEDThe workspace is at a plan limit; limit, maximum and current give the numbers
PROJECT_LIMITThe workspace can’t hold another project, and nothing was saved. Create again under an existing project or without project, and tell the person which you did. nearest, when present, names up to 5 projects that read like the name sent
FEATURE_UNAVAILABLEThe workspace’s plan doesn’t include the feature (feature); on Free, diagram_share with link returns it for a latest or every-version link, or an end more than 7 days out, before asking the person (Paid-plan features)
READ_ONLYThe sign-in or key can read diagrams but not change or share them or report a problem with them; reason is credential or role; Workspaces above says what to do
SHARING_DISABLEDThe workspace’s owners turned public sharing off: diagram_share with publish or link returns it before asking the person. Don’t retry; tell the person an owner can turn sharing back on
RATE_LIMITEDOver a rate limit (the call did nothing) or the feedback limit; retryAfter is the seconds to wait
CONFIRMATION_REQUIREDAsk the person first; see Confirmation. Not an error: it comes without isError, since nothing was done
UNSUPPORTEDThis server doesn’t offer that action
DRAW_TIMEOUTDrawing the scene took longer than the drawing budget (20 s for every drawing over MCP), or needed more memory than it allows. A save or edit saved nothing. The error says what to change: split the diagram, draw fewer edges into one node, or bring the elements closer together
BUSYEvery drawing worker is busy; retryAfter is the seconds to wait
STORAGE_UNAVAILABLEThe workspace’s own GitHub repository didn’t answer; retry after retryAfter seconds. detail names the cause
STORAGE_HOLDThe connection to the workspace’s own GitHub repository needs a workspace owner; reason says what for and detail names the cause. Don’t retry: tell the person a workspace owner must act in Settings → Storage
INTERNAL_ERRORZindex hit an internal error; try again, with the same requestId for an edit. If it keeps failing, tell the person to email support@zindex.ai and say when it happened

STORAGE_UNAVAILABLE and STORAGE_HOLD come only from a workspace that keeps its diagrams in its own GitHub repository (Bring your own storage); Zindex’s own storage, the default, never returns them. STORAGE_HOLD’s reason is installation_missing, installation_suspended, repository_missing, repository_public (the repository was made public; the hold lifts once it is private or internal), branch_missing, push_refused, credentials, external_change (a change made in the repository outside Zindex) or disconnected (an owner disconnected the workspace’s storage). On such a workspace a save takes a few seconds and a read under a second, and a connected repository takes about 80 saves a minute and 500 an hour, GitHub’s limits for the App; past them Zindex answers STORAGE_UNAVAILABLE with the seconds to wait, never a plan-limit error.

A tool call past the person’s tool-call limit comes back as a tool result with code: "RATE_LIMITED" and retryAfter. The call did nothing, so wait that many seconds and make it again. Past the ceiling on other messages, the server answers HTTP 429 instead, as that section describes.

Confirmation

diagram_delete, and diagram_share with publish, link, report or feedback, need the person’s agreement:

CONFIRMATION_REQUIRED comes without isError, since nothing was done. Its error says what will happen, and it carries a confirm token. Tell the person, and only if they agree, call again with the same arguments plus confirm. The token is valid for 10 minutes and only for that account, action and diagram (for link, exactly what the link shows, for whom and until when; for feedback, that item); it can be sent again until it expires.

Zindex never asks before undoing a delete, unpublishing or revoking share links.

diagram_find

Lists the diagrams in this workspace, latest version first. Look here before creating a diagram: each result carries enough to tell it from a similar one without opening it.

InputTypeNotes
querystring, up to 200 charactersMatches the title, key or brief, ignoring case. Title matches come first, then key matches, then brief matches, each latest version first
limit1 to 50Default 10
cursorstringnextCursor from the previous page
projectstringOnly this project, by name; none for diagrams in no project
{
  "diagrams": [
    { "id": "dgm_7Q2kD9a1B2c3", "key": "payments-architecture", "title": "Payments", "brief": "The payments platform's services, queues and databases.", "diagramFamily": "architecture", "project": "Payments", "revision": 12, "updatedAt": "2026-10-01T14:02:11.204Z", "updatedBy": "Priya Shah" }
  ],
  "nextCursor": "..."
}

key is left out when a diagram has none, or when it equals the ID. brief is the first line of the diagram’s brief, cut at a word to 120 characters with ”…”; diagram_get returns all of it. A query matches the whole brief, so a brief match can show a line without the words searched for. diagramFamily is the scene’s family; both are left out when the diagram has none. project is the name of the project the diagram is in, left out when it has none; a person can rename a project, so read the name again when you need it. updatedAt is when the latest version was saved; publishing a diagram or changing its sharing doesn’t move it. In a team workspace, updatedBy names who saved that version, as history does: their name, else their email, or former member for a closed account. It is left out in a personal workspace, and when Zindex doesn’t know who saved it. starred: true marks the diagrams the person starred, on the dashboard or with PUT /v1/diagrams/{id}/star; no tool stars one. sample: true marks the sample diagram Zindex made in a new account, and stays after edits. Pick it only when the person asks for the sample. nextCursor appears only when there are more.

The tool filters by project, by name and ignoring case; an unknown name finds nothing. It doesn’t filter by family or by star; the dashboard does, and REST takes diagramFamily and starred (API). No tool lists the projects, and diagram_get doesn’t show a diagram’s project: read it from diagram_find (Projects).

diagram_get

Reads a saved diagram. By default it returns an outline: a header line (ID, title, revision, time in UTC, the first 12 hex characters of the content hash), the key, sample: true for the sample diagram, the brief, the last three changes, the diagram’s live share links, then one element per line in document order, with a container’s children indented under it. Edges follow as id: from -> to "label", then step 2 for an edge with a step, and its stepText in quotes when it has one. A spanning frame is listed with the elements outside every frame, followed by what it spans: asg aws.autoScalingGroup "Auto Scaling group" spans app_a, app_b. In a sequence diagram the messages and notes follow the other elements in the order they’re drawn, top to bottom, each fragment’s or highlight band’s line before its first one and its messages indented under it, and a participant box’s lifelines under its line: the IDs after and before take (Operations: Order in a sequence diagram). A fragment’s line gives its operator and the row each further operand starts at (frag_charge fragment alt "[charge succeeded]" operands at m_charge_retry "retry on 5xx"), and an activation’s its messages (busy sequence.activation from m1 to m4).

The links: line appears only with write access, for a diagram with live share links. It gives each link’s linkId, what it shows, who it’s for and when it ends, such as lnk_8sV2nQx7LpWe version r7 for "Halden Assurance" until 2027-02-25, or no end. Pass the linkId to diagram_share with unlink to revoke one.

InputTypeNotes
idstringThe diagram’s ID or key
revision or asOfnumber or stringAn earlier version; default the latest
viewoutline, dsp or mermaidDefault outline. dsp returns the scene JSON; mermaid returns Mermaid you can edit and send back
knownRevisionnumberA revision you already have; returns only what changed since
elementsup to 50 element IDsOnly those elements, their direct neighbors and the edges among them
cursorstringThe next page of a long outline
dgm_7Q2kD9a1B2c3 "Payments" r2 2026-10-01T14:02Z sha256:182e406914b7
key: payments-architecture
brief: Checkout payment services, left to right.
  Keep databases in the bottom row; name queues for what they carry.
recent: r2 Claude Code/2.1 "Add the job queue" | r1 Cursor/1.4 "First version"
outline: 3 nodes, 2 edges
  api service "API"
  db database "Ledger"
  queue queue "Jobs"
  e1: api -> db "writes"
  e2: api -> queue "enqueues"

diagram_validate

Checks a DSP scene document, or Mermaid text, without saving it.

InputTypeNotes
sceneobjectA scene document
mermaidstring, up to 64 KBMermaid text, instead of scene: an erDiagram, a flowchart (graph) or a sequenceDiagram
{
  "ok": false,
  "errors": [{ "code": "SCHEMA_VALIDATION_ERROR", "element": "cache", "fix": "/elements/1/kind: 'nod' is not allowed; use one of 'node', 'edge', 'group', 'text', 'guide', 'frame', 'image'." }],
  "warnings": []
}

ok is false when there is at least one error. Warnings don’t block a save. Mermaid that can’t be read (PARSE_ERROR, UNSUPPORTED_DIAGRAM_TYPE, IMPORT_TIMEOUT, IMPORT_FAILED, INPUT_TOO_LARGE), a scene without an elements array (INVALID_REQUEST), and a check when every drawing worker is busy (BUSY), come back as a tool error instead. element appears when a problem belongs to one element, and each list holds at most 10 entries, Mermaid’s notes included. The codes are in Validation rules.

A valid scene is also laid out and drawn, so warnings include what drawing notices, among them:

Every code is in Validation rules: What drawing notices. diagram_create and diagram_edit return the same warnings for the version they save, including the diagram family’s rules.

diagram_create

Saves a new diagram and returns revision 1.

InputTypeNotes
sceneobjectA DSP scene document
mermaidstring, up to 64 KBMermaid text, instead of scene: an erDiagram, a flowchart (graph) or a sequenceDiagram
keystring, up to 128 charactersYour stable name, such as payments-architecture: letters, digits, ., _ and -, starting with a letter or digit. Unique among the workspace’s live diagrams
briefstring, up to 1,000 charactersWhat the diagram shows, conventions to keep, decisions made
messagestring, up to 500 charactersOne line on why it was made
projectstring, 1 to 40 charactersThe project to file it under, at create only; created if new. Leave it out for no project
{ "id": "dgm_7Q2kD9a1B2c3", "key": "payments-architecture", "revision": 1, "hash": "sha256:be1cd7...", "chain": "sha256:9c68ef...", "warnings": [], "created": true }

diagram_edit

Changes a saved diagram. A change appends the next revision; nothing is overwritten, and every earlier revision stays readable.

InputTypeNotes
idstringThe diagram’s ID or key
baseRevisionnumberThe revision you last read; required
messagestring, 1 to 500 charactersOne line on what the edit does and why; required
opsup to 500 operationsTyped operations, checked against ops.schema.json
mermaidstring, up to 64 KBThe whole diagram as Mermaid, usually read with view: "mermaid" and edited
restoreRevisionnumber, or { "asOf": "..." }Makes the next revision equal to an earlier one
briefstring up to 1,000 characters, or nullReplaces the brief; null removes it
requestIdstring, 1 to 255 visible ASCII characters, no spacesYour ID for this edit, such as a UUID

Send ops, mermaid, restoreRevision, or brief on its own. brief may also go with ops or mermaid. restoreRevision can’t be combined with any of them.

{ "id": "dgm_7Q2kD9a1B2c3", "revision": 3, "hash": "sha256:9b1c...", "chain": "sha256:e665...", "warnings": [], "changed": { "added": ["queue"], "updated": ["api"], "removed": [], "moved": [] } }

diagram_render

Returns links to the SVG and PNG of one version, not the image itself, with the image’s size and the version’s date.

InputTypeNotes
idstringThe diagram’s ID or key, or a share link or a published diagram’s link (see below)
revision or asOfnumber or stringAn earlier version; default the latest
knownRevisionnumberA revision you already have (see below)
previewbooleanAlso return the PNG, so you can look at it, or a page can show it
sceneobjectAn unsaved DSP document, instead of id
mermaidstringUnsaved Mermaid text, instead of id
{
  "id": "dgm_7Q2kD9a1B2c3",
  "title": "Payments",
  "revision": 3,
  "latest": 3,
  "savedAt": "2026-10-04T15:20:11.204Z",
  "hash": "sha256:9b1c...",
  "chain": "sha256:e665...",
  "engine": "6.0.0+build.1690",
  "svg": "https://api.zindex.ai/v1/images/dgm_7Q2kD9a1B2c3@3.svg?e=1791756000&s=...",
  "png": "https://api.zindex.ai/v1/images/dgm_7Q2kD9a1B2c3@3.png?e=1791756000&s=...",
  "expires": "2026-10-11T22:00:00.000Z",
  "width": 812,
  "height": 436
}

diagram_history

Lists versions newest first, or compares two versions.

InputTypeNotes
idstringThe diagram’s ID or key
limit1 to 50Default 10
cursorstringnextCursor from the previous page
compare{ "from": ..., "to": ... }Revision numbers or dates; to defaults to the latest
{
  "id": "dgm_7Q2kD9a1B2c3",
  "currentRevision": 2,
  "versions": [
    { "revision": 2, "at": "2026-10-01T14:02:11.204Z", "by": "Ana Lima", "credential": "oauth", "client": "Claude Code/2.1", "message": "Add the job queue", "chain": "sha256:d6d68b...", "added": 1, "changed": 1, "removed": 0, "moved": 1 },
    { "revision": 1, "at": "2026-09-30T09:12:40.517Z", "by": "Ana Lima", "credential": "api_key", "client": "Cursor/1.4", "message": "First version", "chain": "sha256:9c68ef..." }
  ]
}

by is who saved the version: their name, else their email, "former member" once their account is closed, or null when it isn’t known. credential is how: session, api_key or oauth, never which key. client is the MCP client’s name and version, or the first product token of the REST caller’s User-Agent. chain is the version’s chain hash. added, changed, removed and moved count the elements the version added, changed, removed and only moved or resized; revision 1 has no counts.

With compare, the result lists element IDs:

{ "id": "dgm_7Q2kD9a1B2c3", "from": 1, "to": 2, "added": ["queue"], "changed": ["api"], "removed": [], "moved": ["db"], "scene": ["title"], "authors": [{ "by": "Ana Lima", "client": "Claude Code/2.1" }] }

changed and moved hold what an edit’s changed.updated and changed.moved would. scene names the scene-level fields that changed, such as title or brief. authors lists each distinct by and client pair that saved a version after from, up to to.

diagram_delete

Deletes a diagram with all its versions. Asks the person first (see Confirmation).

InputTypeNotes
idstringThe diagram’s ID or key
undobooleanRestore a diagram deleted in the last 24 hours
confirmstringThe token from a CONFIRMATION_REQUIRED result
{ "id": "dgm_7Q2kD9a1B2c3", "deleted": true, "undoWithinHours": 24 }

For 24 hours, undo: true restores it with every version: { "id", "restored": true, "revision", "key" }. If another diagram took its key in the meantime, it comes back without one and the result says so in note. After 24 hours the diagram and its history are gone for good, and undo returns NOT_FOUND.

diagram_share

Changes who can see a diagram, reports a problem with one version to Zindex support, or sends Zindex feedback. Sharing says what each kind of share link and publishing let people see, and which to choose for whom: publishing also lets anyone read the scene JSON.

InputTypeNotes
idstringThe diagram’s ID or key; optional for feedback
actionpublish, unpublish, link, unlink, report or feedback
showsversion, latest or everyFor link: one version, the newest each time it’s opened, or every version and what each changed. Default version
namestring, up to 60 charactersFor link: who it’s for. Anyone with the link sees it, and a version link or latest link prints it on its picture
endsYYYY-MM-DD or nullFor link: the last day it opens, today or later; it stops at 23:59:59 UTC. null: no end date. Default 90 days for a version link, 30 for an every-version link, none for a latest link; 7 days on Free
linkIdstringFor unlink: the one link to revoke, from diagram_get’s links: line
problemstring, up to 500 charactersFor report: what is wrong, in one line
revisionintegerFor a version link, report, or feedback with id; default the latest
anonymizebooleanFor report and feedback; default true
kindbug, docs, request or otherFor feedback; docs: docs and engine disagree
summarystring, up to 200 charactersFor feedback: one line
expected, observedstring, up to 2,000 characters eachFor feedback
confidenceseen, likely or unsureFor feedback
snippetscene object or Mermaid text, up to 64 KBFor feedback, in place of id: send one or the other, not both
confirmstringThe token from a CONFIRMATION_REQUIRED result