get_relevant_knowledge
Automatically retrieves the most relevant past lessons for a project path when you don't know what to search for, filtering results by the project's tech stack.
Instructions
按项目路径自动推荐最相关的经验教训(无需搜索词)。 / Automatically recommend the most relevant lessons for a project path, without search keywords.
**Lifecycle: retrieval** — 在对话中需要项目相关的历史知识时调用。
Lifecycle: retrieval — call mid-conversation when project-relevant past knowledge is needed.
用途:你知道当前项目路径但不知道该搜什么词时调用,Engram 根据项目技术栈自动筛选。
Purpose: Call when you know the current project path but not the right search terms; Engram filters by project tech stack.
注意:如果用户给了明确搜索词,用 search_knowledge 更直接。只返回已审核且当前有效的经验(待审、被取代、已归档的不返回)。
Note: If the user provides explicit search keywords, search_knowledge is more direct. Returns reviewed, current lessons only (no pending, superseded or archived items).
Args:
project_folder: 当前项目文件夹路径。 / Current project folder path.
limit: 最多返回多少条(默认 8)。 / Maximum number of items to return (default 8).
include_freshness: 为每条结果附加 freshness/新鲜度提示(默认 False,保持旧输出不变)。 / Attach a per-item freshness hint (default False; output is unchanged when omitted).
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": {
"project_folder": "<project_folder>"
},
"name": "get_relevant_knowledge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| project_folder | Yes | ||
| include_freshness | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |