search_instincts
Search for coding patterns by content across names, metadata, and explanations when you recall details but not exact identifiers. Use SQLite FTS for efficient substring matching.
Instructions
Find patterns whose key, metadata, or explain text contains the query.
Use this when you remember roughly what a pattern was about but not
the exact key — searches across pattern name, stored metadata, and
the human-readable explain field. Case-insensitive substring match
(backed by SQLite FTS for speed).
For exact-key lookup use get_instinct(). For browsing by category
or project without a keyword, use list_instincts().
Args:
query: Search term. Can be a partial pattern key ("lint"),
a metadata value, or explain text. Multi-word queries match
any word (OR semantics).
Returns:
Dict with keys: "results" (list of matching pattern records,
ordered by confidence desc), "count" (int).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||