get_note
Retrieve a specific note's content and metadata from your Obsidian vault using its file path. This tool enables access to stored information for reading or processing within the MCP server environment.
Instructions
Get a specific note with its content and metadata (legacy)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the note |
Implementation Reference
- src/index.ts:204-206 (handler)Core handler function in ObsidianApiClient that executes the tool logic by making an HTTP GET request to the Obsidian REST API's /notes/{path} endpoint to retrieve the note content and metadata.async getNote(path: string) { return this.request(`/notes/${encodeURIComponent(path)}`); }
- src/index.ts:399-409 (registration)Registration of the 'get_note' tool in the ListToolsRequestHandler response, including name, description, and input schema.{ name: "get_note", description: "Get a specific note with its content and metadata (legacy)", inputSchema: { type: "object", properties: { path: { type: "string", description: "Path to the note" }, }, required: ["path"], }, },
- src/index.ts:402-408 (schema)Input schema definition for the 'get_note' tool, specifying the required 'path' parameter.inputSchema: { type: "object", properties: { path: { type: "string", description: "Path to the note" }, }, required: ["path"], },
- src/index.ts:518-520 (helper)Dispatch routing in the CallToolRequestHandler switch statement that invokes the getNote handler for 'get_note' tool calls.case "get_note": result = await this.client.getNote(args?.path as string); break;