add_watch
Monitor PHP variable values during debugging by adding watch expressions that evaluate on each breakpoint.
Instructions
Add a watch expression that will be evaluated on each break. Watch expressions persist across steps.
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": {
"expression": "<expression>"
},
"name": "add_watch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | PHP expression to watch (e.g., '$user->id', 'count($items)') |