# Describe an architecture diagram as plain text for alt text

This guide is for people who publish diagrams, and for anyone who has an agent draw them. One command prints what a picture says in plain words. Use the text as alt text, the words that replace a picture for someone who cannot see it, or to check the picture against the request.

## How do I get the text?

Run `open-diagram describe` on the diagram file. It prints the description and writes no files.

```bash
open-diagram describe reminders.json
```

In Python, `d.describe()` returns the same text. An agent connected to the MCP server calls the `describe` tool, and the `draw` tool returns the text with the picture.

## What does the text say?

Everything a reader would find in the picture: the title, the key, each block with its tiles and states, the groups, and every line with its label. For this diagram, `open-diagram describe` prints the text below it.


```json
{
  "title": "How a clinic sends appointment reminders",
  "gap": 100,
  "columns": [
    [{"id": "book", "title": "Booking desk", "tiles": ["Front desk", "Phone line"], "cols": 1, "footer": "Owner: Reception"}],
    [{"id": "diary", "title": "Appointment diary", "step": 1, "tiles": ["Slots", {"label": "Waiting list", "status": "building"}], "cols": 1},
     {"id": "notify", "title": "Reminder service", "step": 2, "tiles": ["Text message", {"label": "Email", "status": "planned"}], "cols": 1}],
    [{"id": "patient", "title": "Patient", "tiles": ["Confirms", "Cancels"], "cols": 1}]
  ],
  "groups": [{"label": "Clinic systems", "members": ["diary", "notify"]}],
  "links": [
    {"from": "book", "to": "diary"},
    {"from": "diary", "to": "notify", "start": "bottom", "end": "top", "label": "day before"},
    {"from": "notify", "to": "patient"},
    {"from": "patient", "to": "diary", "kind": "planned", "lane": "top", "label": "replies"}
  ]
}

```

![How a clinic sends appointment reminders](https://open-diagram.dev/images/pages/guides-describe-a-diagram-as-text-1.svg)

The check: 0 layout problems


```text
How a clinic sends appointment reminders
States shown: Live, Being built, Planned. Solid lines: data flows today. Dotted lines: connection to build.

Blocks, left to right:
- Booking desk: Front desk; Phone line. Owner: Reception
- Appointment diary [step 1]: Slots; Waiting list (being built)
- Reminder service [step 2]: Text message; Email (planned)
- Patient: Confirms; Cancels
Groups:
- Clinic systems: Appointment diary, Reminder service
Lines:
- Booking desk -> Appointment diary
- Appointment diary -> Reminder service, labeled "day before"
- Reminder service -> Patient
- Patient -> Appointment diary (connection to build), labeled "replies"
```

## Where does the text go in the SVG?

open-diagram writes it into the SVG, where screen readers can read it. The file opens with `role="img"`, a `<title>` with the diagram's title, and a `<desc>` with the text above.

Wherever you place the PNG, such as on a web page or in a README, use the same text as its alt text.

## How do I check a picture against a request?

Read the text against the request, then look at the picture.

1. Run `open-diagram describe` on the file.
2. Find every system, state, owner and line the request named in the text.
3. If the text names something the request did not, remove it or call it an assumption.
4. Open the PNG.
5. Check that the reading direction is obvious and the main flow has few bends.
6. Check that no line is unclear where it meets a panel.
7. Check that the key matches what the picture uses.
8. Check that every word is one the requester would use, with no placeholder text left.

These checks are step 5 of the [agent skill](draw-diagrams-with-claude-code.html), which has an agent run them before it answers. Steps 1 to 3 need no picture, so an agent can do them from the text alone.

Updated November 25, 2026. Web page: https://open-diagram.dev/guides/describe-a-diagram-as-text.html

See also:

- [Draw architecture diagrams with Claude Code and an MCP server](https://open-diagram.dev/guides/draw-diagrams-with-claude-code.md)
- [Show live and planned work on an architecture diagram](https://open-diagram.dev/guides/show-live-and-planned-work.md)
- [open-diagram MCP tools: names, arguments and results](https://open-diagram.dev/for-agents/mcp-tools.md)
