KeyValue icon

KeyValue

Store and retrieve key-value pairs on the filesystem

Actions20

Search → Query

AI-generated

Summary

Perform a full-text search across all Markdown (.md) files stored in the key-value storage, filtering results by directory and tag, and returning matching records sorted by relevance.

Inputs

  • Query (required) — List of words separated by spaces; all words must match (AND logic), case-insensitive.
  • Directory Filter — Optional glob pattern to restrict which directories to search; leave empty to search all directories.
  • Tag Filter — Optional filter to only search files whose frontmatter tags contain this value; leave empty to search all.
  • Limit — Maximum number of results to return, between 1 and 100; defaults to 50.
  • Include Snippets — Boolean flag to include a context snippet around the first match in each search result; defaults to true.

Output shape

a list of search result items

Each result includes the directory, filename key, numeric score representing match relevance, associated frontmatter tags, and optionally a text snippet around the match. Results are sorted by descending score and limited by the 'Limit' input parameter.

Links

Discussion