UI DNA

Specifications · rev 0.3.1

Spec 03

Tools

Pin 04 of 12

Pin04

inspect_element

Inspect element · shape inspect · group Read

Readinspect

Return one node of a captured state with its box, filtered computed style, the tokens its values belong to, accessibility properties, ancestors, children and evidence references. Locate it by node id, by role and accessible name, or by a simple selector (#id, .class, tag).

CLIuidna element <scanId> <stateId>
MCPinspect_element

03.04.1Effects

Writes artifactsread-only
Destructivenon-destructive
Idempotentsame input, same output
Networklocal only
Long-runningreturns immediately

03.04.2Input

FieldTypeRequiredDescription
scanIdstringrequiredScan id returned by scan_interface, e.g. scan_20261013_3f9a1c.
stateIdstringrequiredState id such as st_01.
nodeIdstringoptional—
rolestringoptional—
namestringoptionalAccessible name (exact, case-insensitive) when locating by role.
selectorstringoptionalSimple selector: #id, .class, tag, or tag.class.
nthintegeroptionalWhich match to return when several match. Default 0.
outRootstringoptional—

03.04.3Result fields

scanIdstateIdmatchesnodestyletokensancestorschildrencomponentInstanceevidence

Every field arrives inside the evidence envelope.