break_on_xhr
Pause JavaScript execution when an XHR or fetch request URL matches a specified pattern, using a debugger hook for reverse engineering.
Instructions
Install a hook that issues debugger; when XHR/fetch URL matches the pattern. v1 fires only if DevTools is open; M3 RDP wires the actual debugger pause.
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": {
"urlPattern": "<urlPattern>"
},
"name": "break_on_xhr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urlPattern | Yes |