sanitize_svg
Remove script tags, event handlers, dangerous URLs, and DOCTYPE/ENTITY payloads from raw SVG markup to prevent code execution and injection risks.
Instructions
Sanitize raw SVG: strip script tags, event handlers, dangerous URLs, and DOCTYPE/ENTITY payloads.
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": "sanitize_svg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| svg | Yes | Raw SVG markup |