convert_icon
Convert SVG icon data to PNG output at custom pixel sizes via Sharp.
Instructions
Convert SVG icon to PNG format using Sharp. Supports custom sizes.
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": {
"iconData": "<iconData>",
"fromFormat": "<fromFormat>",
"toFormat": "<toFormat>"
},
"name": "convert_icon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Output size in pixels (width and height) | |
| iconData | Yes | SVG content to convert | |
| toFormat | Yes | ||
| fromFormat | Yes |