Set Obsidian Hotkey
set_hotkeyAssign custom keyboard shortcuts to any Obsidian command ID. Specify key combinations with modifiers, or clear bindings by passing an empty array.
Instructions
Set persisted hotkey bindings for an exact Obsidian command ID. The app may need a vault reload; command IDs cannot be runtime-validated by the standalone server.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hotkeys | Yes | Bindings; pass an empty array to clear this command's custom hotkeys. | |
| commandId | Yes | Exact command ID, e.g. insert-template. |