execute_command_tool
Run any Obsidian command by its ID, such as toggling bold, directly from your workflow. Requires Obsidian to be open.
Instructions
Execute Obsidian command (requires Obsidian running).
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": {
"command_id": "<command_id>"
},
"name": "execute_command_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command_id | Yes | Command ID (e.g., 'editor:toggle-bold') | |
| ctx | No |