Skip to main content
Glama

read_note

Retrieve content from a specific note in your Obsidian vault by providing its file path.

Instructions

Read the content of a single note

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath to the note relative to vault root

Implementation Reference

  • Handler function that resolves the full path to the note, checks if it exists, and returns its content as a string.
    async function handleReadNote(args: { path: string }): Promise<string> { const fullPath = resolvePath(args.path); if (!(await fileExists(fullPath))) { throw new Error(`Note not found at ${args.path}`); } return await fs.readFile(fullPath, "utf-8"); }
  • Tool definition including name, description, and input schema requiring a 'path' string.
    { name: "read_note", description: "Read the content of a single note", inputSchema: { type: "object", properties: { path: { type: "string", description: "Path to the note relative to vault root", }, }, required: ["path"], }, },
  • src/index.ts:893-895 (registration)
    Registration in the switch statement dispatching tool calls to the handleReadNote function.
    case "read_note": result = await handleReadNote(args as { path: string }); break;

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/sureshsankaran/obsidian-tools-mcp'

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