run_command
Execute any Obsidian CLI command to manage vault operations, including sync, plugins, themes, and publish.
Instructions
Run any Obsidian CLI command directly. Use get_help to discover available commands. This is an escape hatch for the ~80 CLI commands not exposed as dedicated tools (sync, plugins, themes, templates, workspaces, publish, dev tools, etc.).
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": "<command>"
},
"name": "run_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | CLI command (e.g. 'sync:status', 'plugins', 'vault') | |
| args | No | Key-value parameters (e.g. {"id": "my-plugin", "name": "test"}) | |
| flags | No | Boolean flags (e.g. ["verbose", "total"]) |