vitest_record_learning
Record a newly resolved Vitest error pattern, its root cause, and fix template into the Knowledge Bank for reuse during future migrations.
Instructions
Records a newly resolved error pattern, root cause, and fix template into the permanent Knowledge Bank.
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": {
"errorSignature": "<errorSignature>",
"rootCause": "<rootCause>",
"fixRule": "<fixRule>"
},
"name": "vitest_record_learning"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Short descriptive name for the rule | |
| fixRule | Yes | The rule/pattern used to fix it | |
| rootCause | Yes | Why the error occurred in Vitest | |
| errorSignature | Yes | Regex pattern or substring matching the error | |
| commentTemplate | No | The mandatory code comment template |