Svg To Data Uri Tool
svg_to_datauriEncode an SVG (or fetched image) as a CSS-ready data: URI. Provide either raw svg or a url. Rate limit: 30 calls/min per IP.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "svg_to_datauri"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svg | No | Raw SVG markup. Mutually exclusive with url. | |
| url | No | Public image URL the server will fetch. | |
| quotes | No | Quote style for the data URI (default double). | |
| encoding | No | Defaults: utf8 for SVG, base64 for raster. |