electron_cdp_evaluate
Run JavaScript inside an Electron app's context and return the result to inspect state, manipulate UI, or debug behavior.
Instructions
Execute JavaScript code in the Electron app context and return the result
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": {
"script": "<script>",
"returnValue": "<returnValue>"
},
"name": "electron_cdp_evaluate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | ||
| script | Yes | JavaScript code to execute in the app context | |
| returnValue | Yes |