debugger_evaluate_at_frame
Evaluate a JavaScript expression in the scope of a paused call frame to inspect local variables and closures, confirming hypotheses with real values.
Instructions
Evaluate an expression in the scope of a paused call frame, so local variables and closures are in scope. This is how you confirm a hypothesis with a real value rather than inferring one.
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": "debugger_evaluate_at_frame"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | How deep to expand an object result. | |
| expression | Yes | JavaScript evaluated in the frame's scope. | |
| frame_index | No | Which frame; 0 is innermost. |