execute_main_process_script
Execute JavaScript in the Electron main process to automate testing and control application lifecycle and interactions.
Instructions
Execute JavaScript in the Electron main process context
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>",
"script": "<script>"
},
"name": "execute_main_process_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | ||
| sessionId | Yes |