Set Obsidian Hotkey
set_hotkeyAssign custom keyboard shortcuts to Obsidian commands by specifying modifiers and key. Pass an empty array to clear existing bindings. Requires vault reload to apply.
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. |