evaluate_on_call_frame
Evaluate a JavaScript expression in a paused call frame to inspect local variables during debugging.
Instructions
Evaluate an expression in the context of a paused call frame (access local variables). Requires the target to be paused — get callFrameId from get_paused_state.
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": {
"sessionId": "<sessionId>",
"callFrameId": "<callFrameId>",
"expression": "<expression>"
},
"name": "evaluate_on_call_frame"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageId | No | Page id from list_pages, or "main" (default) for the main process. | |
| sessionId | Yes | Session id returned by launch_app. | |
| expression | Yes | JavaScript expression to evaluate. | |
| callFrameId | Yes | Call frame id from get_paused_state. |