obsidian_command
Execute any Obsidian command by its canonical ID, triggering core or plugin actions like toggling bold or navigating back, exactly as via the command palette.
Instructions
Execute an Obsidian command by its canonical command ID.
Wraps the CLI's command Verb. Triggers any core or plugin command exactly as the user would from the command palette — identified by its stable command ID (e.g. 'editor:toggle-bold', 'app:go-back', 'daily-notes').
Discovering IDs: run the generic obsidian tool with the commands verb to list every available command ID, or commands filter=<prefix> to narrow by prefix (e.g. 'commands filter=editor:').
Parameters: id (required) — the command ID to execute
Examples: obsidian_command({ id: "editor:toggle-bold" }) obsidian_command({ id: "daily-notes" })
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Obsidian command ID to execute |