get_recent_notes
Retrieve recently modified notes from your Obsidian vault, sorted by modification time, and specify the number of notes to fetch for efficient note management.
Instructions
Get recently modified notes, ordered by modification time
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of recent notes to return |
Implementation Reference
- src/index.ts:146-149 (handler)The core handler function in ObsidianApiClient that fetches recent notes by making an HTTP request to the Obsidian REST API endpoint `/vault/notes/recent` with the specified limit.async getRecentNotes(limit: number = 5) { const params = new URLSearchParams({ limit: limit.toString() }); return this.request(`/vault/notes/recent?${params}`); }
- src/index.ts:351-359 (schema)Defines the input schema, name, and description for the `get_recent_notes` tool in the list of available tools.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 (registration)Registers the tool call handling by routing `get_recent_notes` calls to the client handler method.case "get_recent_notes": result = await this.client.getRecentNotes(args?.limit as number); break;