evaluate
Run JavaScript expressions in a specific call frame while paused during Electron debugging to inspect or modify runtime state.
Instructions
Evaluate JavaScript in a specific call frame. Only works when paused.
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": {
"call_frame_id": "<call_frame_id>",
"expression": "<expression>"
},
"name": "evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expression | Yes | JavaScript expression to evaluate | |
| call_frame_id | Yes | Call frame ID from call_stack() | |
| connection_id | No | Chrome connection to use |