update_shortcut
Change a keyboard shortcut binding. Provide the shortcut name, a key, and at least one modifier key.
Instructions
Change a keyboard shortcut binding. Requires at least one modifier key. Use get_shortcuts to see available shortcut names.
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": {
"name": "<name>",
"key": "<key>",
"modifiers": "<modifiers>"
},
"name": "update_shortcut"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The key to bind (e.g. 'space', 's', 'k', 'f1', 'left'). Valid: a-z, 0-9, space, return, tab, escape, delete, left, right, up, down, f1-f12. | |
| name | Yes | The shortcut name (e.g. 'toggleSidebar', 'saveCurrentPage'). Get names from get_shortcuts. | |
| modifiers | Yes | Modifier keys (at least one required). Valid: 'command', 'shift', 'option', 'control'. Aliases: 'cmd', 'ctrl', 'opt', 'alt'. |