break_on_xhr
Set breakpoints on XHR/Fetch requests containing specific URL strings to debug network interactions in WeChat MiniApp JavaScript code.
Instructions
Sets a breakpoint that triggers when an XHR/Fetch request URL contains the specified string.
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": {
"url": "<url>"
},
"name": "break_on_xhr"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |