Set a breakpoint
set_breakpointPause Node.js execution at a chosen file and line, optionally only when a JavaScript condition is truthy, even if the file is not loaded yet. Returns a breakpoint ID for later removal.
Instructions
Set a (optionally conditional) breakpoint at file:line. Line is 1-based. The file may not be loaded yet; the breakpoint resolves when it is. Returns the breakpoint id to use with remove_breakpoint.
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": {
"file": "<file>",
"line": "<line>"
},
"name": "set_breakpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | Path to the source file, relative to the session cwd or absolute. | |
| line | Yes | 1-based line number. | |
| condition | No | JS expression; the breakpoint only triggers when it is truthy, e.g. `user.id === 42`. |