set_shortcut
MCP tools › Window and UI driver
Change the user's keymap as Settings › Keymap does (needs the settings right: the keymap holds for every project): give an action exactly the given shortcuts (keymap notation; an empty list removes them) or restore its bundled shortcuts with reset. Saved as the TOML user keymap keymaps/FerrisIDEA.toml (an older FerrisIDEA.xml is read until then and kept as .bak) over this platform's bundled keymap; windows use it when changed there or at their next start. Returns the action's shortcuts and other actions that share the first keystroke.
| Capability | ui.set_shortcut |
|---|---|
| Area | Window and UI driver |
| Access | changes settings |
| Reaches | — |
| Rights | settings |
| Dry run | none |
Arguments
| Argument | Type | Description |
|---|---|---|
actionrequired | string | Action id, e.g. SaveAll (see keymap_lookup and search_everywhere). |
shortcuts | array of string | The action's shortcuts from now on, in keymap notation (control alt S, control K, control C);
an empty list removes them. Omit together with reset to restore the bundled ones. |
reset | boolean | Restore the bundled shortcuts of the action (drops the user's change). |
Call it from a shell
ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.
ferris-idea call ~/my-project set_shortcut '{"action":"<string>"}'Input schema as JSON
{ "type": "object", "required": [ "action" ], "properties": { "action": { "description": "Action id, e.g. `SaveAll` (see `keymap_lookup` and `search_everywhere`).", "type": "string" }, "shortcuts": { "description": "The action's shortcuts from now on, in keymap notation (`control alt S`, `control K, control C`);\nan empty list removes them. Omit together with `reset` to restore the bundled ones.", "type": [ "array", "null" ], "items": { "type": "string" }, "default": null }, "reset": { "description": "Restore the bundled shortcuts of the action (drops the user's change).", "type": [ "boolean", "null" ], "default": null } }}