Generate SVG Graphic
generate_svgGenerate scalable vector graphics (SVG) for diagrams, illustrations, icons, and data visualizations using Gemini. Produces clean, production-ready code with inline preview.
Instructions
Generate scalable vector graphics (SVG) using Gemini. Creates clean, production-ready SVG code for diagrams, illustrations, icons, and data visualizations. Returns inline preview with SVG viewer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Description of the SVG graphic to generate | |
| width | No | SVG width in pixels (default: 800) | |
| height | No | SVG height in pixels (default: 600) | |
| style | No | Visual style: technical (diagrams), artistic (illustrations), minimal (simple), data-viz (charts) | technical |
| model | No | Gemini model to use (defaults to configured default) | |
| outputPath | No | Optional file path to save the SVG (e.g. C:/output/diagram.svg) |