knowledge_add_pattern
Add a learned pattern to the knowledge base with source, category, tags, and confidence after analyzing a repository or discovering a reusable technique.
Instructions
Add a learned pattern to the knowledge base. Use after analyzing a repo or discovering a useful technique.
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": {
"source": "<source>",
"category": "<category>",
"title": "<title>",
"description": "<description>"
},
"name": "knowledge_add_pattern"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Searchable tags | |
| title | Yes | Short descriptive title | |
| source | Yes | Where this pattern came from, e.g. 'github.com/user/repo' or 'self:session-215' | |
| category | Yes | Pattern category | |
| confidence | No | How confident are we this pattern works. 'consensus' = validated by 2+ independent agents. | observed |
| description | Yes | What the pattern is and why it works |