Autofix & Re-Render Workflow ($0 Free)
autofix_workflowDeterministic connector healing and full visual re-rendering ($0 compute cost, instant, unlimited). Cleans exact duplicate edges and empty sequence labels, recomputes deterministic orthogonal layout, and returns fresh spec, svg, mermaid, excalidraw, and studioUrl. Missing steps or branches require source-backed edits to the spec; this tool preserves graph meaning and does not perform semantic verification. Use this tool after making direct structural edits to VisualSpec JSON (nodes / edges), or when a user asks to autofix connectors.
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": {
"spec": "<spec>"
},
"name": "autofix_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | The VisualSpec JSON object to deterministically heal and re-render into SVG, Mermaid, and Excalidraw. | |
| swimlane | No | Optional swimlane layout toggle (defaults to automatic swimlanes when 2+ actor groups exist). | |
| visualId | No | Owned jobId or visualId of the original workflow, to carry its document evidence coverage forward. | |
| authToken | No | Optional session token (`utok_...`) if not passed via Authorization header. | |
| includeSvg | No | Explicitly include or omit inline SVG XML (defaults to true for 'full' and 'svg', false for 'preview'/'compact'/'mermaid'). | |
| orientation | No | Optional layout orientation (defaults to topology auto-orientation). Mermaid emits TD for portrait or LR for landscape; the host controls final geometry. | |
| renderFormat | No | Optional output size control (MCP defaults to 'mermaid' for the host to render). Use 'preview' for a bounded inline PNG on the hosted service, with Mermaid and an owner-only SVG URL when available, or 'svg'/'mermaid' for a single format. | |
| maxPreviewWidth | No | Target preview width bound in px for responsive preview metadata (default 1200). | |
| evidenceCoverage | No | Optional document preflight coverage report from the host agent (`pagesExamined`, `totalPages`, `textExtracted`, `tablesExtracted`, `embeddedDiagramsDetected`, `omittedMedia`, `notes`). When omitted media or uninspected diagrams are reported, Unseen flags `EVIDENCE_NOT_INSPECTED`. | |
| maxPreviewHeight | No | Target preview height bound in px for responsive preview metadata (default 900). | |
| includeExcalidraw | No | Explicitly include or omit inline Excalidraw scene JSON (defaults to true only for 'full'). |