Actions26
- Block Actions
- Collection Actions
- Daily Note Actions
- Document Actions
- Folder Actions
- Task Actions
Daily Note → Search Within Daily Note
AI-generatedSummary
Search for blocks matching a specified pattern within a daily note for a given date, optionally including surrounding blocks before and after each match.
Inputs
- Daily Note Date (required) — Specify the date of the daily note to search, using YYYY-MM-DD format or a relative date.
- Pattern (required) — Provide a NodeJS regular expression pattern to search for within the daily note's blocks.
- Search Options — Optionally configure search behavior by setting case sensitivity, and specify how many blocks before and after a match to include in the results (default is 5 for both).
Output shape
a list of items, each representing matched blocks within the specified daily note, including optionally the surrounding blocks as defined by the before and after block counts.
The operation returns JSON objects with the matched block data and context blocks if requested. Supports advanced pattern matching with NodeJS regular expressions. Requires valid Craft API credentials with permissions to access daily notes.