Preview diagrams
preview_diagramRequires a TechFabric engineer's Microsoft sign-in (scope blog.write). A read: every ```mermaid block in a post (or one mermaid source), as the site will treat it. For each: its lines in the post, its caption, whether the site's mermaid parses it (with the error and its line in the post when it doesn't), and the diagram rules' findings (a caption that states the point; no fact in a label the section's text doesn't say). In a host that renders MCP Apps it opens the diagrams drawn in the site's theme. Files nothing, calls no model; use it while drafting, then lint_draft the whole post.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| markdown | Yes | The whole post, frontmatter included, or one mermaid source. At most 200,000 characters |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | Yes | ||
| count | Yes | ||
| ready | Yes | There is at least one diagram, every one parses, and none has a finding | |
| render | Yes | ||
| in_post | No | Whether the lines are a post's (frontmatter or a fence), not a bare source's | |
| omitted | No | ||
| diagrams | Yes | ||
| post_needs_diagram | Yes | For a whole post: why it still needs a captioned diagram, or null |