Generate SVG Graphic
generate_svgTurn prompts into production-ready SVG code for diagrams, illustrations, icons, and charts. Preview the result inline and save the graphic.
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. [MCP_RECOMMENDED_TIMEOUT_MS: 240000]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Omit to use gemini-3.1-pro-preview. Other valid options: gemini-3-pro-preview, gemini-3-flash-preview. | |
| style | No | Visual style: technical (diagrams), artistic (illustrations), minimal (simple), data-viz (charts) | technical |
| width | No | SVG width in pixels (default: 800) | |
| height | No | SVG height in pixels (default: 600) | |
| prompt | Yes | Description of the SVG graphic to generate | |
| outputPath | No | Optional file path to save the SVG (e.g. C:/output/diagram.svg) |