execute_command
Run an Obsidian command by ID to trigger editor actions, formatting, and vault operations. Use list_commands to find available command IDs.
Instructions
Execute an Obsidian command by its ID. Use list_commands to find available command IDs.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"commandId": "<commandId>"
},
"name": "execute_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| commandId | Yes | The command ID to execute (e.g. 'editor:toggle-bold') |