Contents

Create a daily note

daily_notes_create · Tools · Daily notes

Create the daily, weekly, monthly, quarterly or yearly note for a period

Parameters

NameTypeRequiredDescription
cadence"daily" | "weekly" | "monthly" | "quarterly" | "yearly"YesWhich kind of note.
datestringNoAny day inside the period, YYYY-MM-DD; may be in the future. Omit for the current period.
timezonestringNoIANA timezone, such as Europe/Berlin, that decides what the current day is when no date is given. Omit for the workspace's configured timezone.

Daily Notes Create Tool#

Creates the daily, weekly, monthly, quarterly or yearly note for a period, or returns the one already there. It is the Daily Note node's create operation, so an agent can make sure a note exists without a workflow.

When to Use#

The agent uses it to open today's note, or to prepare a note ahead of time: a future date creates the note for that period from the cadence's configured template. It then reads or edits the note as the Library document it is: pass document_id to library_get, and edit it with the other Library tools. To find notes that already exist, use daily_notes_list.

Parameters#

Field Type Required Description
cadence daily | weekly | monthly | quarterly | yearly yes Which kind of note
date date YYYY-MM-DD no Any day inside the period, in the future too; omitted means the current period
timezone IANA timezone, such as Europe/Berlin no Decides what today is when date is omitted; defaults to the workspace's configured timezone

The date is moved to the first day of its period, so asking on Wednesday and on Friday for the weekly note gives one note. In a template, {{ date }} renders that period date and {{ time }} the time the note is created.

Returns#

Field Type Description
date date The first day of the period
cadence string The cadence asked for
note object The note's date, cadence, document_id and title
document_missing boolean true when the note exists but its document has since been deleted

Errors#

  • A cadence not turned on in the Daily Notes settings: "{cadence} notes are not turned on in the Daily Notes settings, so no note was created. They can be turned on in Settings › Plugins." Nothing is created.
  • A timezone that is not an IANA timezone name is refused as an invalid parameter before anything is created.
  • Daily Notes not installed: "Daily Notes is not installed in this workspace. It can be installed in Settings › Plugins."
  • Daily Notes turned off: "Daily Notes is turned off in this workspace. It can be turned on in Settings › Plugins."