svg_to_data_uri
Convert raw SVG markup to a percent-encoded or base64 Data URI for CSS background-image or HTML img src.
Instructions
Convert raw SVG into a Data URI for CSS background-image or HTML img src.
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": "svg_to_data_uri"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svg | Yes | Raw SVG markup | |
| encoding | No | Encoding (default uri / percent-encoded) |