List Or Search Obsidian Commands
commands.listList all registered Obsidian commands or filter by query to find command IDs. Use substring match on id or name, case-insensitive. Read-only; ideal for discovering commands before executing them.
Instructions
List Obsidian commands. With no query, returns every registered command (both built-in and plugin-provided). With a query string, returns commands whose id or display name matches — substring match, case-insensitive. Read-only. Use this to discover command ids before calling commands.execute. Requires the Local REST API plugin.
Targets the vault the live Obsidian process has open via the Local REST API. Not affected by vault.select — that only changes filesystem-tool routing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Substring to match against command id or name. Omit to list all commands. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | Number of items in `items`. | |
| items | Yes | List of result items; per-item shape depends on the tool. |