edit_diagram
Edit existing diagrams using natural language instructions, with configurable AI provider, resolution, and optional reference images.
Instructions
Edit an existing diagram based on instructions.
Args: image_path: Path to the existing diagram image prompt: Edit instructions provider: Image generation provider (gemini|openai) resolution: Output resolution (auto-detect if not specified) reference_images: Additional reference image paths output_path: Where to save the result
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": {
"image_path": "<image_path>",
"prompt": "<prompt>"
},
"name": "edit_diagram"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| provider | No | gemini | |
| image_path | Yes | ||
| resolution | No | ||
| output_path | No | ||
| reference_images | No |