save_lesson
Saves a roadmap concept lesson as Markdown with up to five runnable examples so learners can read and run code before activities.
Instructions
Save a lesson for one roadmap concept: Markdown (at most 64 KB) the learner reads before the activity, and up to 5 runnable examples. Each example is a file map with exactly the track's learner files (for unit, plus tests/ files); Codemm runs each in the sandbox with no input and it must exit 0. Place example N in the Markdown as a fenced block with info string example whose only line is N. An example that needs input goes in a plain code block. Diagrams and charts go in fenced blocks with info string mermaid (flowchart, sequenceDiagram, stateDiagram-v2, classDiagram, pie, xychart), only when a picture teaches better than words; give each an accTitle and accDescr for screen readers. The id must be new in the course.
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": {
"id": "<id>",
"concept": "<concept>",
"title": "<title>",
"markdown": "<markdown>"
},
"name": "save_lesson"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Lesson id | |
| title | Yes | ||
| concept | Yes | Concept id from the roadmap | |
| examples | No | Runnable examples; they need the track set up | |
| markdown | Yes |