DOM change timeline
query_dom_historyTrack attribute and text changes for a DOM element over a session using a CSS selector. Returns a chronological list of modifications to show how the element evolved.
Instructions
Timeline of attribute and/or text changes over a session for the node matching a CSS selector - useful for tracking how one element evolved. Returns JSON { selector, changes }. Use op to restrict to attribute changes or innerText; omit for both.
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>",
"selector": "<selector>"
},
"name": "query_dom_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sessionId | Yes | Session id from list_recent_sessions. | |
| selector | Yes | CSS selector for the node to track, e.g. '#status' or '.cart-count'. | |
| op | No | Restrict to 'attributeChanges' or 'innerText'. Omit to include both. | |
| limit | No | Maximum changes to return (1-500; default 100). |