AI Enhance Workflow (TypeSafe Jev Audit & Repair)
enhance_workflowBundled free semantic verification and repair powered by TypeSafe Jev. Audits the VisualSpec against its cited sources[] for unsupported claims, missing decision branches, and role accuracy, applies targeted repair if actionable issues are found, and returns the enhanced spec, svg, mermaid, excalidraw, studioUrl, and Jev quality metrics.
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>",
"visualId": "<visualId>",
"confirmEnhance": "<confirmEnhance>"
},
"name": "enhance_workflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | The current VisualSpec JSON object (including its `sources` array) to audit and enhance. | |
| visualId | Yes | The owned `jobId` or `visualId` returned when the workflow was compiled. Required for AI Enhance on the hosted service. | |
| 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'). | |
| 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. | |
| confirmEnhance | Yes | Set true only after the user confirms AI Enhance. Enhance does not use generation credits. | |
| 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'). |