get_instinct
Retrieve the complete record for a known pattern key to see full context, confidence, and metadata. Use after a compact suggestion to get detailed information.
Instructions
Fetch the full record for one pattern by its exact key.
Exact-match lookup; keys are case-sensitive and must include the
category prefix. Typically called after suggest() returns a compact
entry and you want the full context. Read-only.
For substring or keyword search use search_instincts(). For browsing
by category/project without a key use list_instincts(). For the
confidence timeline of this pattern, pair with history(pattern).
Args:
pattern: Exact pattern key including its category prefix.
Examples: "seq:lint->fix->lint", "pref:style=black",
"fix:null-deref-guard", "combo:eslint+prettier". Case-sensitive.
Returns:
On hit — the full record: {"pattern": str, "category":
"sequence"|"preference"|"fix_pattern"|"combo", "confidence": int,
"promoted": 0|1|2|3, "level": "raw"|"mature"|"rule"|"universal",
"project": str ("" = global), "source": str, "metadata": dict,
"explain": str, "first_seen": iso8601, "last_seen": iso8601}.
On miss — {"error": "Not found: <pattern>"}. Callers must check
for the "error" key before assuming a record was returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pattern | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||