flowzap

v2.2.1
io.github.flowzap-xyz/flowzap Checked 2 days ago Published 25 days ago

Create workflow, sequence, architecture, and mind map diagrams via AI assistants.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

flowzap_validate Validate FlowZap Code

Parses FlowZap Code and returns line-by-line errors and warnings plus structural stats (lanes, nodes, edges). Call it on any code you generated or edited before rendering it, and re-call it after flowzap_fix to confirm the repair. It reads nothing but the code you pass: no diagram is created and nothing is stored. Typo-level defects (edge syntax, undefined node references, non-sequential node IDs) are the class it catches.

ParameterTypeDescription
code *stringFlowZap Code to validate. Common shortcuts accepted: 'n1 -> n2' (handles auto-inferred) and 'n1 --> n2' (normalized). Full syntax: n1.handle(right) -> n2.handle(left).

flowzap_fix Repair FlowZap Code

Deterministically repairs mechanical FlowZap Code defects: non-sequential node numbering, missing or inferred edge handles, node and edge label syntax, missing lane display labels, and emoji or non-printable characters. Returns the repaired code plus the list of corrections applied. Use it after flowzap_validate reports one of those mechanical codes. It never invents nodes, edges or content, so semantic errors (a missing step, a wrong ordering) are reported unchanged and must be fixed in the code itself.

ParameterTypeDescription
code *stringFlowZap Code to repair (max 50,000 chars)
lngstringResponse language hint (default: en)

flowzap_create_playground Create Shareable Diagram

Validates the code and creates a shareable interactive diagram URL that the user can open in the workflow, sequence or architecture view. Use it once your code passes flowzap_validate and the user wants to see, edit or share the diagram. Side effects: it publishes a public read-only page and returns its URL; the session expires 60 minutes after creation, so the URL is not durable. The response also carries an advisory quality block (unreachable step, several start nodes, dead end); the diagram is created regardless, so fix the code and call again if that block is non-empty.

ParameterTypeDescription
code *stringFlowZap Code to load in the playground. Common shortcuts accepted: 'n1 -> n2' (handles auto-inferred) and 'n1 --> n2' (normalized). Full syntax: n1.handle(right) -> n2.handle(left).
viewstringView mode for the diagram. Use 'architecture' for architecture diagrams, 'sequence' for sequence diagrams, 'workflow' (default) for workflow diagrams, 'mindmap' for mind map view.

flowzap_get_syntax Get FlowZap Code Syntax

Returns the complete FlowZap Code DSL reference: lane, node, edge and loop grammar, the four allowed shapes, handle syntax and the ordering rules a diagram must satisfy. Call once before writing your first diagram, or when a validation error cites a rule you do not know. Takes no arguments and returns text only; it never validates your code, so pair it with flowzap_validate.

flowzap_export_graph Export Diagram as Graph

Parses FlowZap Code into a structured JSON graph of lanes, nodes and edges for programmatic analysis, transformation or hand-off to another system. Use it instead of parsing the DSL yourself when you need the structure rather than a rendered picture. It reads only the code you pass and returns no URL and no rendering.

ParameterTypeDescription
code *stringFlowZap Code to parse into a graph structure

flowzap_artifact_to_diagram Convert Logs or Specs to Diagram

Turns an HTTP log, an OpenAPI specification or a code snippet into FlowZap Code and a shareable diagram URL. Use it when the input is a machine artifact rather than a description in prose, and you want the resulting call or dependency flow drawn. Side effects: it publishes a public diagram page with a 60-minute session lifetime. The conversion is structural, so call flowzap_validate on the returned code before relying on it for anything but reading.

ParameterTypeDescription
artifactType *stringType of artifact: http_logs (request/response sequences), openapi (API specs), code (function call traces)
content *stringRaw artifact content to parse
viewstringPreferred diagram view (default: sequence for logs, workflow for openapi)

flowzap_diff Compare Diagram Versions

Compares two versions of FlowZap Code and returns a structured diff of the nodes, edges and lanes added, removed or updated. Use it to review what a change actually did before you create or replace a diagram. It reads both inputs and creates nothing; it does not judge whether either version is valid, so validate separately.

ParameterTypeDescription
newCode *stringUpdated FlowZap Code
oldCode *stringOriginal FlowZap Code

flowzap_apply_change Patch an Existing Diagram

Applies structured patch operations (insert, remove or update nodes and edges) to existing FlowZap Code, then renumbers and repairs the result before rendering it. Use it to edit a diagram incrementally instead of regenerating it, which preserves node IDs and layout the user has already seen. Side effects: it overwrites the diagram content and publishes a public page with a 60-minute session lifetime. The response lists the operations actually applied and the ones skipped with their reason; when no operation applies or the patched code is still invalid, no page is created and no URL is returne…

ParameterTypeDescription
code *stringCurrent FlowZap Code to modify
operations *arrayArray of patch operations to apply

flowzap_compliance_check Review Diagram Compliance

Runs an architectural compliance review of a FlowZap data-flow diagram against SOC2, GDPR, PIPL and EU AI Act controls, and returns a Markdown report of findings per framework whose elements are detectable in the diagram, plus the URL of a rendered report when the service issues one. Use it when the user asks whether a data flow is compliant, not as a legal opinion: the output is an advisory architectural review, not legal advice, and it cannot see systems the diagram does not model. Limitations: the analysis is produced by an external LLM processor (DeepSeek, disclosed under GDPR Art. 13); ca…

ParameterTypeDescription
code *stringFlowZap Code data-flow diagram to analyze (max 50,000 chars)
lngstringResponse language (default: en)

flowzap_mindmap_validate Validate Mind Map Code

Validates FlowZap Code syntax and additionally checks whether the code is renderable as a mind map: no diamonds or taskboxes, at least one circle as root, at least one rectangle as branch. Use it as the gate before flowzap_mindmap_approve or flowzap_mindmap_create_playground. It only reports and creates nothing; for a general syntax check use flowzap_validate instead.

ParameterTypeDescription
code *stringFlowZap Code to validate for mind map readiness

flowzap_mindmap_approve Check Mind Map Readiness

Returns a structured ERROR, WARNING and INFO verdict on whether valid code renders well as a mind map: diamonds and taskboxes are blocking errors, multiple circles and depth beyond five levels are warnings, edge directions are informational. Use it after flowzap_mindmap_validate when you want to know whether the result is worth presenting, not merely whether it compiles. It parses locally and creates nothing.

ParameterTypeDescription
code *stringFlowZap Code to inspect for mind map readiness

flowzap_mindmap_template Generate Mind Map Skeleton

Generates ready-to-extend FlowZap Code for a mind map from a topic, a branch count and a depth: a central circle root, rectangle branches and sub-branches, and cross-links between branches where they fit the tree. Use it to bootstrap a new mind map instead of writing the skeleton by hand. It returns code only and does not validate it or create a page; validate the edited result with flowzap_mindmap_validate.

ParameterTypeDescription
branchesnumberNumber of main branches from the root (default: 3, max: 8)
depthnumberDepth of sub-branches per main branch (default: 2, max: 4)
topicstringCentral topic label for the mind map root (default: 'Central Topic')

flowzap_mindmap_create_playground Create Shareable Mind Map

Validates the code and creates a shareable URL that opens directly in mind map view. Use it once flowzap_mindmap_validate and flowzap_mindmap_approve have passed and the user wants to see or share the mind map. Side effects: it publishes a public page and returns its URL; the session expires 60 minutes after creation, so the URL is not durable.

ParameterTypeDescription
code *stringFlowZap Code to load in a mind map playground