query_entries
Retrieve specific project-memory entries by applying exact AND-combined filters on type, scope, status, tags, and date fields. Use when you know precise field values and need deterministic results.
Instructions
Structured field filter — exact AND-combined predicates, NOT relevance search. Use when you know the field values (e.g. absolute constraints scoped to 'hooks/'). Stable ID order, no ranking; empty is a real answer. Includes superseded/deprecated unless you filter status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Singular alias for `types`. `types` wins if both given. | |
| text | No | Free text over text fields; every term must appear (AND, substring). | |
| limit | No | Cap entries returned (matched_entries reports the total). | |
| scope | No | Exact, case-sensitive match on a constraint's scope (e.g. 'hooks/'). | |
| since | No | Verified/created on or after this ISO date. | |
| types | No | Restrict to these entry types. Default: all. | |
| before | No | Verified/created strictly before this ISO date. | |
| origin | No | user/agent/import (string or list). Missing counts as 'agent'. | |
| status | No | active/superseded/deprecated (string or list). | |
| hardness | No | Constraint hardness absolute/advisory (string or list). | |
| tags_all | No | Entries with ALL of these tags. | |
| tags_any | No | Entries with AT LEAST ONE of these tags. | |
| supersedes | No | The entry that superseded this id. | |
| project_dir | No | Absolute path to another project to query. | |
| token_budget | No | Max tokens returned (default from config). | |
| superseded_by | No | Entries replaced by this id (superseded_by == id). |