execute_command
Run a sequence of Obsidian commands in order, opening notes as needed to automate workflow actions.
Instructions
Execute one or more Obsidian commands in order. For commands that operate on notes, open a note first.
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": {
"commands": "<commands>"
},
"name": "execute_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vaultId | No | Optional vault ID (defaults to configured default vault). | |
| commands | Yes | List of command IDs to execute. |