Inspect document
inspect_documentInspect an SVG document to view its tree, layers, styles, fonts, assets, and all objects with IDs, enabling you to understand structure and target elements for editing.
Instructions
Inspect a loaded document: tree, layers, styles, fonts, external assets.
When to use: the go-to overview to understand a document's structure AND discover targetable
object ids before editing. To search for SPECIFIC objects by filter use find_objects; for
quality metrics use quality_report; for well-formedness use validate_document.
Key params: doc_id only (read-only).
Return shape: InspectDocumentResult — summary, tree, layers, styles, fonts,
assets, and objects (flat list of every id-bearing object with tag / bbox / paint / text,
the same ObjectRef shape find_objects returns).
Example: inspect_document(doc_id)
Risk class: low (read-only, direct DOM per ADR-005).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tree | Yes | ||
| fonts | Yes | ||
| assets | Yes | ||
| layers | Yes | ||
| styles | Yes | ||
| objects | Yes | ||
| summary | Yes |