read_note
Retrieve the full contents of an Obsidian note file by providing its filepath, enabling external applications to access and process note data from your vault.
Instructions
Read and return the contents of an Obsidian note file.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filepath | Yes |
Implementation Reference
- The handler function for the 'read_note' tool, decorated with @mcp.tool(). It reads the content of the Obsidian note file at the given filepath and returns it as a string.@mcp.tool() def read_note(filepath: str): """Read and return the contents of an Obsidian note file.""" with open(filepath, "r", encoding="utf-8") as f: content = f.read() return content
- src/mcp_server_obsidian_omnisearch/server.py:34-34 (registration)Registers the read_note function as an MCP tool using the FastMCP decorator.@mcp.tool()
- Input schema defined by function signature (filepath: str) and docstring describing the tool's purpose.def read_note(filepath: str): """Read and return the contents of an Obsidian note file."""