Revise Workflow Diagram
revise_workflowApply explicit node label/role changes or node removal using node IDs, or request connector autofix. For other changes, including new steps or edges, edit the returned spec with confirmed source evidence and call autofix_workflow. Unsupported instructions return an error; this tool does not perform general natural-language rewrites.
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>",
"instruction": "<instruction>"
},
"name": "revise_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | The existing VisualSpec object to revise | |
| 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'). | |
| instruction | Yes | Clear revision instruction (e.g. 'Change node-2 role to decision and label to Finance Approval?', 'Remove orphan node-4', 'Autofix layout connections') | |
| 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). | |
| additionalSources | No | Optional additional source evidence excerpts to support the revision | |
| includeExcalidraw | No | Explicitly include or omit inline Excalidraw scene JSON (defaults to true only for 'full'). |