breakpoint_set_data
Pause execution when a specific variable changes or is read, using a variable reference and name obtained from the debugger.
Instructions
Set a data/watch breakpoint: break when a specific variable changes (or is read). Requires a variablesReference + name from variables_get. May not be supported by all adapters.
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": {
"variablesReference": "<variablesReference>",
"name": "<name>"
},
"name": "breakpoint_set_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the variable to watch. | |
| accessType | No | Access type: "write" (default), "read", or "readWrite". | write |
| variablesReference | Yes | variablesReference of the container holding the variable (from variables_get). |