obsidian_execute_command
Runs a specified Obsidian command by its command ID, enabling automation of editor and plugin actions from an MCP client.
Instructions
Execute an Obsidian command by its ID.
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": "obsidian_execute_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command_id | Yes | Command ID to execute (e.g., 'editor:toggle-fold') |