render_svg
Renders SVG strings or files to PNG images with resvg, no browser required. Specify width and height to generate visual output for AI coding assistants.
Instructions
Render an SVG string or file as a PNG image using resvg. No browser needed.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "render_svg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svg | No | SVG string to render | |
| path | No | Absolute path to an SVG file to render | |
| width | No | Output width in pixels (default 800) | |
| height | No | Output height in pixels (auto-calculated from aspect ratio if omitted) |