Skip to main content
Glama
bezata

kObsidian MCP

by bezata

Open File In Obsidian

workspace.openFile

Opens a vault-relative note in Obsidian's live UI, reusing the active pane or opening a new split with newPane. UI-only action that does not read or modify file contents.

Instructions

Open a vault-relative note filePath in the live Obsidian UI. newPane:true opens it in a new split; default reuses the active pane. UI-only — does not create, modify, or read file contents (use notes.read for content). Returns { ok: true } on success; errors when the file does not exist or the Local REST API plugin (OBSIDIAN_API_URL / OBSIDIAN_REST_API_KEY) is unreachable. The opened file targets the live Obsidian process's vault, which may differ from the filesystem session vault — see vault.current.

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 — Reveal a daily note in the current pane.:

{
  "filePath": "Daily/2026-04-25.md"
}

Example 2 — Open a reference note in a side split.:

{
  "filePath": "wiki/Concepts/grpc.md",
  "newPane": true
}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
newPaneNoOpen in a new split pane instead of reusing the active one. Defaults to false.
filePathYesVault-relative path of the note to open (e.g. `Daily/2026-04-25.md`).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed2 schema fields changedv0.3.5
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed2 schema fields changedv0.3.2
    • changedInput schema / properties / filePath / description
      Previous value: -"Vault-relative path of the note to open."New value: +"Vault-relative path of the note to open (e.g. `Daily/2026-04-25.md`)."
    • changedInput schema / properties / newPane / description
      Previous value: -"Open in a new split pane instead of the current one. Defaults to false."New value: +"Open in a new split pane instead of reusing the active one. Defaults to false."
  3. Changed4 schema fields changedv0.1.2
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / filePath / description
      Added value: +"Vault-relative path of the note to open."
    • addedInput schema / properties / newPane / description
      Added value: +"Open in a new split pane instead of the current one. Defaults to false."
    • addedOutput schema / description
      Added value: +"Freeform object. The specific shape depends on the tool; see the tool description."
  4. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description goes well beyond the annotations: it discloses that the tool is UI-only, does not create/modify/read file contents, returns { ok: true }, fails when the file is missing or the REST API plugin is unreachable, and may target a different vault than the filesystem session. It also notes the newPane behavior. None of this contradicts the annotations; the non-readOnlyHint is consistent with the UI state change it performs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is longer than the minimal case, but each block earns its place: the core behavior, the UI-only caveat, the failure modes, the vault-targeting caveat, and examples. There is minor redundancy in mentioning the Local REST API twice, but overall it is well-organized and front-loaded with the action and key parameter.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter tool with rich annotations and an output schema, this description is complete. It covers return values, error conditions, relationship to notes.read, interaction with vault.select, and provides examples. An agent has everything needed to invoke it correctly without consulting additional tools.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already explains both parameters. The description adds some value by clarifying the default newPane behavior ('default reuses the active pane') and providing two concrete examples, but it largely restates the schema's semantic content rather than adding substantial new meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a precise verb-resource pairing — 'Open a vault-relative note filePath in the live Obsidian UI' — and clarifies the UI scope. It explicitly distinguishes itself from notes.read by saying it does not read file contents. This is enough to separate it from siblings like notes.read and workspace.navigate.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a clear when-to-use signal: when you need to reveal a note in the live Obsidian UI. It also provides an explicit alternative by saying 'use notes.read for content,' and explains that vault.select does not affect this tool. It does not enumerate all sibling alternatives exhaustively, but it gives sufficient routing context for the common confusion cases.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bezata/kObsidian'

If you have feedback or need assistance with the MCP directory API, please join our Discord server