execute_command
Run Obsidian commands through the REST API plugin to automate vault operations and UI actions.
Instructions
Execute an Obsidian command (requires REST API plugin)
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": {
"vault": "<vault>",
"commandId": "<commandId>"
},
"name": "execute_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vault | Yes | Vault identifier | |
| commandId | Yes | Command ID | |
| args | No | Command arguments (optional) |