Close Active File
workspace.closeActiveFileCloses the active file tab in Obsidian's workspace without modifying file contents. Use to manage open tabs or reset UI state via Local REST API.
Instructions
Close the currently active file in Obsidian. Does not affect file contents — only the UI. Requires the Local REST API plugin.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||