tksq_learn
Manage the learning buffer: list candidate patterns, promote or reject them, add manual substitutions, and view compression statistics.
Instructions
Manage the learning buffer. List candidate patterns discovered from usage, promote them to active substitutions, reject false positives, or add manual patterns. Use 'stats' action to see compression statistics.
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": {
"action": "<action>"
},
"name": "tksq_learn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Action: list=show candidates, promote=activate a candidate, reject=remove candidate, add=manually add a pattern, reset=clear all learned data, stats=show statistics | |
| phrase | No | Phrase to promote/reject/add | |
| replacement | No | Replacement for promote/add action |