debugger.set_breakpoint
Pauses script execution at a chosen line by URL, URL regex, or script ID, with an optional condition to stop only when an expression is truthy.
Instructions
Set a breakpoint by URL, URL regex or script id, with an optional condition expression.
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": {
"line": "<line>"
},
"name": "debugger.set_breakpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| line | Yes | 1-based line number. | |
| column | No | ||
| condition | No | Only pause when this expression is truthy. | |
| script_id | No | ||
| target_id | No | Target handle (tgt_*). Omit for the active page. | |
| url_regex | No | ||
| browser_id | No | Browser handle (br_*). Omit to use the only running browser, or auto-launch one. |