optimize_svg
Reduce SVG file size by cleaning and optimizing content with SVGO, removing metadata, comments, and unnecessary attributes.
Instructions
Clean and optimize SVG content using SVGO. Removes metadata, comments, and unnecessary attributes to reduce file size.
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": "optimize_svg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | No | Optimization options (all default to sensible values) | |
| svgContent | Yes | SVG content to optimize |