set_breakpoint
Set a JavaScript breakpoint by URL or regex and line number to pause execution for inspection, even before the target script loads.
Instructions
Set a breakpoint by URL pattern and line number. Works even before script is loaded.
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": {
"lineNumber": "<lineNumber>"
},
"name": "set_breakpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Exact URL of the script | |
| urlRegex | No | Regex pattern to match script URL | |
| condition | No | Breakpoint condition expression | |
| lineNumber | Yes | Line number (0-based) | |
| columnNumber | No | Column number (0-based) |