convert_svg_to_png
Converts a raw SVG string into a PNG image. Specify background color, locale for multilingual output, and target width up to 2048 pixels.
Instructions
Convert an SVG string to PNG. Converter MCP is a Pro workflow tool.
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": "convert_svg_to_png"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svg | Yes | Raw SVG string to render. | |
| locale | No | Optional locale for multilingual output. Supported values: zh-Hans, zh-Hant, ja, ko, es, de, pt, ar, hi, vi, th. | |
| background | No | Background color: `transparent` or a hex value like `#ffffff`. | transparent |
| targetWidth | No | Output width in pixels. |