get_dom_subtree
Extract the HTML of a specific DOM subtree at any recorded timestamp to diagnose UI disappearance or layout changes. Supply a CSS selector or node ID to retrieve that element's state from a session.
Instructions
Reconstruct and extract the HTML of a specific subtree (e.g. #app or .gpt-panel) at a given timestamp.
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": "get_dom_subtree"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | No | LogicalNodeId for the root of the subtree | |
| selector | No | CSS selector for the root of the subtree | |
| sessionId | Yes | Session ID | |
| timestamp | No | Timestamp in milliseconds |