obsidian_eval
Execute JavaScript against the Obsidian API to automate note organization, vault operations, and plugin control. Requires Obsidian running with CLI enabled.
Instructions
Execute JavaScript against the Obsidian API (requires Obsidian running with CLI enabled)
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": {
"code": "<code>"
},
"name": "obsidian_eval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | JavaScript code to evaluate against the Obsidian API |