Skip to main content
Glama

Save the board to a file

export_board

Exports a whiteboard or selected shapes and their connectors to SVG, PNG, Mermaid, or JSON for sharing, documentation, or later redrawing.

Instructions

Writes the board (or some shapes and what connects them) to a file: svg or png (a picture), mermaid (a flowchart read back from the boxes and arrows, to keep in docs and redraw later) or json (the raw shapes). Relative paths are from the directory Claude Code was started in.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "format": "<format>",
      "path": "<path>"
    },
    "name": "export_board"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesFile to write, e.g. docs/architecture.svg
refsNoOnly these shapes, with the text in them and the arrows between them (a shape: its id, a node key you used, or the text on it)
themeNosvg/png background (default light)
formatYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full burden. It usefully discloses that relative paths resolve from the directory Claude Code was started in and that refs narrows output to a connected subset — both non-obvious behaviors. It says nothing about overwriting an existing file, what happens if the parent directory is missing, or what the tool reports back after writing, which matter for a file-mutating operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One dense sentence front-loads the verb and resource, then packs format semantics and path resolution into parentheticals with no filler. Every clause carries information an agent needs before calling.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter write tool with no annotations and no output schema, the description covers format choice and path base well but leaves overwrite/error behavior and the return value unaddressed. An agent can call it, but cannot predict what happens on collision with an existing file.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 75%, so the baseline is 3; the description earns more by explaining the resolution base for path (startup directory) and by giving semantic meaning to each format value, which the bare enum lacks. It does not clarify the refs identifier forms or the theme default beyond what the schema already states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (writes) and resource (the board, or a subset of shapes and their connections) and enumerates the four output formats with a plain-language gloss of each (svg/png = picture, mermaid = flowchart to keep in docs, json = raw shapes). Sibling tools like get_board or look_at_board are not named, so the distinction from read-only board inspection is left implicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The format glosses hint at use cases (mermaid "to keep in docs and redraw later", json for raw data), which implies when each variant is appropriate. However, there is no explicit when-to-use framing, no statement of when NOT to export, and no routing to alternatives such as get_board for reading structure without writing a file.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.