Read page changes
read_page_diffCompare a page snapshot with the previous one in a tab, frame, or document to identify added, removed, and changed nodes with refs; the first call or reset establishes the baseline.
Instructions
Compare a compact page snapshot with the previous snapshot in this session/tab/frame/document. First call or reset establishes a baseline. Returns added/removed/changed nodes with refs, explicit navigation resets and truncation. State is bounded in worker memory and lost on extension restart; comparisons are observations, not a complete DOM mutation log.
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": {
"tabId": "<tabId>"
},
"name": "read_page_diff"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reset | No | ||
| tabId | Yes | ||
| frameId | No | ||
| maxChars | No | ||
| maxResults | No |