svg_sanitize
Sanitize untrusted SVG markup: strip scripts, event handlers, foreignObject, XXE entities and unsafe/external links; returns clean SVG and a removal report. Paid: $0.02 USDC via x402.
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_sanitize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| b64 | No | base64 SVG (alternative) | |
| svg | No | SVG markup | |
| allow_external | No | true to keep external http(s) refs |