id property

String id
final

The node's identity, and the whole reason this type exists rather than the inspector's JSON being passed through.

Derived from the tree's shape, never assigned. The framework's ids (inspector-42) are minted per object group, refcounted, and die with the process — which is fatal here, because every fw invocation and every MCP call opens a fresh session and holds nothing. An agent that reads a tree in one process and asks about a node in the next has to be talking about the same node, and only a derived id can promise that.

The form is the child-index path from the subtree root: '' for the root, then 0, 0/1, 0/1/2. Stable as long as the tree is, which is the most any structural id can offer — see InspectTree.nodeAt for what a caller gets when it is not.

Implementation

final String id;