API & MCP

Everything a person can do on Sketchboard Auto Layout, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Sketchboard Auto Layout

Takes a Sketchboard board or a plain list of links (“A -> B”) and arranges the boxes: a layered layout with few crossings for flowcharts and graphs in any direction, or a balanced left/right tree for mind maps. Returns the new positions, an SVG and the board file.

Inputs of Sketchboard Auto Layout
FieldTypeDefaultDescription
edgestextarea—Links, one per line. For example “Idea -> Research” or “Research -> Prototype: needs a budget”. A line with only a name adds a lonely box. Ignored when a board is given.
boardtextarea—Or a Sketchboard board (JSON). A .sketchboard.json file. Shapes that are glued to connectors are laid out; locked shapes stay.
modeselect (auto, layered, mindmap)"auto"Layout
directionselect (TB, LR, BT, RL)"TB"Direction (layered)
gapXinteger40Gap between neighbours
gapYinteger60Gap between ranks

Example request

Product plan from a link list

curl -X POST https://sketchboardautolayout.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"edges":"Idea -> Research\nResearch -> Prototype\nPrototype -> User test\nUser test -> Prototype: needs changes\nUser test -> Launch\nResearch -> Budget\nBudget -> Launch"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "sketchboard-auto-layout": { "type": "http", "url": "https://sketchboardautolayout.usefulweb.app/mcp" }
  }
}