set_breakpoint
Pause script execution at a specific line by setting a breakpoint, optionally with a condition expression.
Instructions
Set a breakpoint in a GDScript file at a specific line, optionally with a condition
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": {
"script_path": "<script_path>",
"line": "<line>"
},
"name": "set_breakpoint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Line number to set breakpoint on | |
| condition | No | Optional condition expression - breakpoint only triggers when true | |
| script_path | Yes | Script file path (e.g. 'res://scripts/player.gd') |