Craft Daily Notes icon

Craft Daily Notes

Interact with Craft Daily Notes API - manage blocks, tasks, collections, and search

Block → Insert

AI-generated

Summary

Insert markdown content into a specified daily note in Craft, optionally positioning it at the start, end, before, or after a reference block.

Inputs

  • Markdown Content (required) — The markdown content to insert, which the Craft API parses into structured blocks (e.g., headers, code blocks, lists).
  • Target Date — Date of the daily note to insert the content into. Accepts relative dates like 'today', 'tomorrow', 'yesterday' or an explicit 'YYYY-MM-DD' date.
  • Insert Position — Where to insert the content within the daily note: at the start, end, before a specific block, or after a specific block.
  • Reference Block ID — Block UUID to position the inserted content relative to; required if you choose 'before' or 'after' for insert position.

Output shape

a single JSON object representing the inserted blocks and their updated positions in the daily note

The inserted content is sent as markdown parsed into blocks by the API. The indication of position includes date and optionally sibling block ID. The response will contain details of the newly inserted blocks. If 'before' or 'after' position is chosen, 'Reference Block ID' must be provided to determine insertion point.

Links

Discussion