inspect
Outline SVG structure to list layers, groups, elements, styles, text, and bounding boxes. Find elements by fill, type, text, or id prefix to target edits.
Instructions
Outline of the document: layers, groups and elements with ids, fill/stroke as rendered (style,
attributes or inherited), text, use targets (href) and real visual bounding boxes [x, y, width, height]
in user units (measured by Inkscape). Layers/groups with more than max_children children are summarised
(counts per type, first/last ids, bbox). To list one of them, pass layer (layer name or group id) and a
larger max_children.
find: a flat list of matching elements instead of the tree, e.g. {"fill": "#99cc32"} (colours compared
in any notation), {"type": "text", "text": "total"}, {"type": "use", "href": "Parking"},
{"type": "symbol"} (symbols in defs, with titles), {"id_prefix": "card-"}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bbox | No | ||
| find | No | ||
| layer | No | ||
| doc_id | No | ||
| max_children | No |