render_svg
Renders SVG markup to PNG in ComfyUI's input folder and returns the filename for LoadImage nodes, making precise base images for img2img workflows.
Instructions
Render SVG content to PNG and save to ComfyUI's input folder. Returns filename for use in LoadImage nodes. Useful for creating precise base images for img2img workflows.
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": {
"svg": "<svg>"
},
"name": "render_svg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svg | Yes | SVG content to render (full SVG markup including <svg> tags) | |
| fonts | No | Fonts to embed in the SVG for rendering | |
| width | No | Output width in pixels (default: 768) | |
| height | No | Output height in pixels (default: 768) | |
| filename | No | Output filename (without extension). Defaults to 'svg_render_<timestamp>' | |
| background | No | Background color (default: transparent). Use hex like '#ffffff' or 'transparent' |