Search Knowledge
search_knowledgeSearch knowledge cards by keyword or verbatim error message, using project and stack context to rank matches. Returns compact snippets with match labels for direct answers vs. partial leads.
Instructions
Search knowledge cards by keyword or verbatim error message. Pass context (stack + versions read from your .knowledge-map.yaml) so results rank by facet relevance, not just text match; also pass project (and aliases) from the same file in context. Each result has a match label; match: "related" or no_direct_match: true means only partial matches were found, so use them as leads, not answers, and a hint appears when the store has no verified cards. Returns compact snippets only, never full card bodies. Every response carries a write_back_reminder: after using a returned card you MUST call report_card_usage(id, outcome).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "search_knowledge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max results (default 5) | |
| query | Yes | Search query — keywords or a verbatim error message | |
| context | No | Caller repo context — read by the agent/client from .knowledge-map.yaml, the server does not read it itself | |
| include_drafts | No | Include draft cards (labeled untrusted) | |
| include_deprecated | No | Include deprecated cards | |
| include_restricted | No | Include sensitivity:restricted cards |