create_icon_component
Create an icon component from SVG content by inserting, flattening, resizing, setting fill color, and converting to a Component. Returns component ID and key.
Instructions
Create an icon component from SVG content. Inserts SVG, flattens vectors, resizes to standard size, sets fill color, and converts to a Component. Returns component ID and key.
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": {
"svgContent": "<svgContent>"
},
"name": "create_icon_component"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | X position | |
| y | No | Y position | |
| name | No | Component name, e.g. Icon/Navigation/ArrowBack | |
| size | No | Icon size in px (default 24) | |
| parentId | No | Parent frame ID | |
| fillColor | No | Fill color hex, e.g. #1C1C1C | |
| svgContent | Yes | SVG markup string |