analyze-svg
Check whether an SVG can be represented as editable monoline strokes and identify geometry, paint, or content that conversion would approximate or drop.
Instructions
Use when: checking whether an SVG file can be represented as editable monoline strokes, and what that conversion would approximate or drop. Returns: classification (safe, lossy, unsupported), importable, defaultWriteAllowed, requiredLosses (geometry-approximation, paint-approximation, drop-content), issues with element locations, counts and work budgets, the source SHA-256, and analysisDigest, a SHA-256 over the canonical analysis and normalized drawing. includeDrawing adds the drawing. Do not use when: you want to attach the SVG file itself to a note (add-attachment). Safety: read-only and local. Opens no Notes data and makes no network request. Reads only a regular file in home, temp or /Volumes, refusing hidden paths (~/.ssh, .env) and ~/Library outside iCloud Drive and CloudStorage unless the server sets APPLE_NOTES_MCP_ALLOW_PRIVATE_CONTENT_PATHS=1; a file whose root element is not is refused without quoting it. Scripts, event handlers, style elements, animation, DOCTYPE/entities and external resources are refused with svgCode svg_unsafe; malformed files with svg_invalid; oversized work with svg_complexity_limit.
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": {
"path": "<path>"
},
"name": "analyze-svg"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path of one .svg file (home, temp, or /Volumes; not a hidden path or ~/Library outside iCloud Drive and CloudStorage; not a symbolic link; at most 1048576 bytes of UTF-8) | |
| includeDrawing | No | Also return the normalized drawing (strokes with sRGB color, width and points). Off by default: it can be large. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| classification | No |