generate_diagram_from_image
Convert images like whiteboard photos or sketches into clean software engineering diagrams. Upload an image URL or base64 data to generate editable diagrams for flowcharts, sequence diagrams, ERDs, and system architectures.
Instructions
Convert an image (whiteboard photo, screenshot, hand-drawn sketch) into a clean diagram. Use this tool when the user provides an image URL or base64-encoded image and wants it converted to a proper software engineering diagram. Accepts public image URLs or base64 data URIs (data:image/...;base64,...). Returns a link to view and edit the generated diagram in the browser.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Either a public image URL or a base64 data URI of the image to convert. Supported formats: JPEG, PNG, GIF, WebP. For a URL: 'https://example.com/whiteboard.png'. For a data URI: 'data:image/png;base64,iVBORw0KGgo...' | |
| prompt | No | Instruction describing what to extract or how to render the diagram. Example: "Convert this whiteboard photo into a clean sequence diagram" | |
| diagramType | No | Preferred output diagram type. Leave blank to let the AI decide based on the image content. | |
| isIconEnabled | No | Set to true when the user asks to include icons in the diagram. |