trace_element
Trace the complete lifecycle of a DOM element—from creation, mounting, mutations, and style changes to removal—to diagnose when and why UI elements disappear or change.
Instructions
Trace the entire chronological lifecycle of a DOM element from creation, mounting, mutations, style changes to unmounting/removal.
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": {
"sessionId": "<sessionId>"
},
"name": "trace_element"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | No | LogicalNodeId of the element | |
| selector | No | CSS selector hint for the element | |
| sessionId | Yes | Session ID |