set_dom_breakpoint
Pause JavaScript execution when a specified DOM node undergoes subtree changes, attribute updates, or removal, using a node ID and mutation type to debug DOM behavior.
Instructions
Set a breakpoint on DOM mutations (subtree changes, attribute changes, or node 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": {
"nodeId": "<nodeId>",
"type": "<type>"
},
"name": "set_dom_breakpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Type of mutation to break on | |
| nodeId | Yes | Node ID from querySelector |