get_daily_note
Retrieve a daily note from your Obsidian vault for a specific date, handling common naming conventions and file locations via a local REST API.
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 handler function in ObsidianApiClient that implements the core logic of fetching the daily note by making an API request to `/vault/notes/daily` endpoint with the specified date.async getDailyNote(date: string = "today") { const params = new URLSearchParams({ date }); return this.request(`/vault/notes/daily?${params}`); }
- src/index.ts:343-348 (schema)Input schema definition for the get_daily_note tool, specifying an optional 'date' parameter.inputSchema: { type: "object", properties: { date: { type: "string", description: "Date (today, yesterday, tomorrow, or YYYY-MM-DD)", default: "today" }, }, },
- src/index.ts:484-486 (registration)Tool execution dispatcher in the CallToolRequestSchema handler that routes calls to the getDailyNote method.case "get_daily_note": result = await this.client.getDailyNote(args?.date as string); break;
- src/index.ts:340-349 (registration)Tool registration in the ListToolsRequestSchema response, defining name, description, and schema.{ 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" }, }, }, },