Keep a lesson learned here
godot_lesson_addStore a project lesson learned so future sessions reuse the fix when the same Godot message or question returns; add symptom, cause, error, and test to keep it findable.
Instructions
Keep a lesson learned in this project, so the next session knows it: when the same Godot message or question comes back, godot_check and godot_lessons show your fix. Write it in general words: title in one line, fix what to do; add symptom, cause, error (the Godot message as printed), topic, tags, rules and test when you can. Project names, paths, links, e-mail addresses, codes, keys and source code are replaced before anything is stored; a lesson that is mostly names is refused with what to change. The same title again updates that lesson. It writes only to the local learning file and is never sent. Add one whenever a fix took more than one try, not for what a review rule already reports. Returns the stored lesson and what was replaced; an error when it is refused or learning is off.
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": {
"title": "<title>",
"fix": "<fix>"
},
"name": "godot_lesson_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fix | Yes | what to do instead | |
| tags | No | words to find it by | |
| test | No | how to test it | |
| cause | No | why, in Godot terms | |
| error | No | the Godot message it explains, as printed | |
| rules | No | review or model rule ids it belongs to | |
| title | Yes | the lesson in one line, e.g. 'A body placed on a moving deck must start at the deck speed' | |
| topic | No | default gdscript | |
| symptom | No | what went wrong, as it showed |