Media
Analyze SVG markup, remove redundant elements, reduce payload size, compare before and after visually, and export cleaned files
Call this tool from your code in three languages.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/svg-minifier-analyzer' \
-F 'file=@/path/to/svgFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/en/api/tools/svg-minifier-analyzer' \
-F 'svgFile=/public/samples/svg/01-basic-shapes.svg' \
-F 'precision=2' \
-F 'removeHiddenElements=true' \
-F 'batchPackageName=marketing-illustration'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/svg-minifier-analyzer| Name | Type | Required | Description |
|---|---|---|---|
| svgFile | fileupload required | Yes | — |
| precision | number | No | — |
| removeHiddenElements | checkbox | No | — |
| batchPackageName | text | No | — |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-svg-minifier-analyzer": {
"name": "svg-minifier-analyzer",
"description": "Analyze SVG markup, remove redundant elements, reduce payload size, compare before and after visually, and export cleaned files",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=svg-minifier-analyzer",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "svg-minifier-analyzer",
"arguments": {
"svgFile": "/public/samples/svg/01-basic-shapes.svg",
"precision": 2,
"removeHiddenElements": true,
"batchPackageName": "marketing-illustration"
}
}
}HTML result
{
"result": "<div>Processed HTML content</div>",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Questions or issues? Contact [email protected]