get_daily_note
Retrieve a daily note from your Obsidian vault for a specific date, handling common naming conventions and file locations automatically.
Instructions
Get daily note for a specific date. Handles common daily note naming conventions and file locations.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Date (today, yesterday, tomorrow, or YYYY-MM-DD) | today |
Implementation Reference
- src/index.ts:141-144 (handler)The getDailyNote method in the ObsidianApiClient class. This is the core handler that executes the tool logic by making an HTTP request to the Obsidian REST API's daily notes endpoint.async getDailyNote(date: string = "today") { const params = new URLSearchParams({ date }); return this.request(`/vault/notes/daily?${params}`); }
- src/index.ts:340-349 (schema)The tool schema definition in the listTools response, including name, description, and inputSchema with date parameter.{ name: "get_daily_note", description: "Get daily note for a specific date. Handles common daily note naming conventions and file locations.", inputSchema: { type: "object", properties: { date: { type: "string", description: "Date (today, yesterday, tomorrow, or YYYY-MM-DD)", default: "today" }, }, }, },
- src/index.ts:484-486 (registration)Registration and dispatch in the CallToolRequestSchema handler switch statement that calls the handler method.case "get_daily_note": result = await this.client.getDailyNote(args?.date as string); break;