Generate Image to Diagram
generateImageDiagramConvert any image, such as a screenshot or whiteboard sketch, into a structured diagram by automatically identifying components and relationships.
Instructions
Convert an image (screenshot, diagram, whiteboard sketch, architecture drawing, etc.) into a ToDiagram custom format diagram. Analyzes the image to identify components, relationships, and hierarchical structure, then generates an equivalent diagram.
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": {
"imageBase64": "<imageBase64>",
"imageMimeType": "<imageMimeType>"
},
"name": "generateImageDiagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional name for the generated diagram | |
| description | No | Optional description or context about the image | |
| imageBase64 | Yes | Base64-encoded image data | |
| imageMimeType | Yes | MIME type of the image |