trigger_shortcut
Triggers an Electron global shortcut accelerator, such as Ctrl+Shift+P or F12, to test or reproduce keyboard-driven app behavior during debugging.
Instructions
Trigger an Electron global shortcut accelerator (e.g. 'CommandOrControl+Shift+P')
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": {
"accelerator": "<accelerator>"
},
"name": "trigger_shortcut"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| targetId | No | ||
| processId | No | Process ID. If omitted, uses the single running app. | |
| accelerator | Yes | Keyboard shortcut accelerator (e.g. 'Ctrl+Shift+P', 'F12') |