get_recent_notes
Retrieve recently modified notes from your Obsidian vault to track recent changes and access updated content quickly.
Instructions
Get recently modified notes, ordered by modification time
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of recent notes to return |
Implementation Reference
- src/index.ts:146-149 (handler)The core implementation of the get_recent_notes tool. This method in ObsidianApiClient makes a GET request to the Obsidian REST API endpoint `/vault/notes/recent` with the optional limit parameter to retrieve recently modified notes.
async getRecentNotes(limit: number = 5) { const params = new URLSearchParams({ limit: limit.toString() }); return this.request(`/vault/notes/recent?${params}`); } - src/index.ts:350-359 (registration)Registration of the get_recent_notes tool in the list of available tools returned by ListToolsRequestHandler. Includes name, description, and input schema.
{ name: "get_recent_notes", description: "Get recently modified notes, ordered by modification time", inputSchema: { type: "object", properties: { limit: { type: "number", description: "Number of recent notes to return", default: 5 }, }, }, }, - src/index.ts:488-490 (handler)MCP tool dispatcher case that handles calls to get_recent_notes by invoking the client method with the provided arguments.
case "get_recent_notes": result = await this.client.getRecentNotes(args?.limit as number); break; - src/index.ts:353-358 (schema)Input schema definition for the get_recent_notes tool, specifying the optional limit parameter.
inputSchema: { type: "object", properties: { limit: { type: "number", description: "Number of recent notes to return", default: 5 }, }, },