Record a learning
record_learningStores reusable OpenSCAD lessons on modeling techniques, print rules, and user preferences, enabling future designs and guidelines to reuse or refine them.
Instructions
OpenSCAD: saves a short lesson for later designs in the workspace (.openscad-mcp/learnings.json): a technique that failed or worked, a printing rule, or a preference of the user. get_guidelines returns every learning together with the guidelines. replaces swaps an existing learning for a refined one. At most 100 learnings; an identical text is refused.
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": {
"category": "<category>",
"text": "<text>",
"reason": "<reason>"
},
"name": "record_learning"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The lesson as one general sentence that holds for later parts, e.g. "Round every outer edge, also the top and bottom of extrusions; screw holes stay sharp." | |
| design | No | The design it came from. | |
| reason | Yes | What led to it, e.g. "User asked for all edges rounded on broom-holder". | |
| category | Yes | "technique": how to model something in OpenSCAD; "printing": what prints well or badly; "preference": what the user wants in their parts. | |
| replaces | No | Id of a learning this one refines; that one is forgotten. |