Close Active File
workspace.closeActiveFileClose the active file in the Obsidian UI without modifying content. Use after workspace.openFile to dismiss a temporarily-revealed note.
Instructions
Close whatever file is currently active in the Obsidian UI. UI-only — does not delete, save, or modify file contents. No-op when no file is active. Returns { ok: true } on success; errors when the Local REST API plugin is unreachable. Use after workspace.openFile when you want to dismiss a temporarily-revealed note. Pair with workspace.activeFile first if you need to know what was closed.
Targets the vault the live Obsidian process has open via the Local REST API. Not affected by vault.select — that only changes filesystem-tool routing.
Examples:
Example 1 — Dismiss the currently active pane.:
{}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||