evaluate_on_frame
Evaluate a JavaScript expression within a specific call frame to inspect variables and debug stack state at breakpoints.
Instructions
Evaluate an expression in the context of a call frame.
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": "evaluate_on_frame"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | JavaScript expression to evaluate | |
| returnByValue | No | Return result by value (for serializable results). Default: false | |
| callFrameIndex | No | Call frame index (0 = top). Default: 0 |