read_note
Retrieve the contents of an Obsidian note file by specifying its filepath using a REST API, enabling external applications to access and use note data programmatically.
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, which reads the contents of the specified Obsidian note file and returns it as a string.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)Registration of the 'read_note' tool using the @mcp.tool() decorator on the FastMCP instance.@mcp.tool()
- Input schema defined by the 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."""