create_lesson
Create a new lesson with auto-generated slug and default values. Define titles, content types, media, and practice exercises before building courses.
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>",
"type": "<type>",
"contentType": "<contentType>"
},
"name": "create_lesson"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Lesson type (optional) | |
| image | No | Lesson image URL (optional) | |
| title | Yes | Lesson title (required, automatically generates slug) | |
| skills | No | Array of skill IDs from libservice (optional, can be empty array) | |
| content | No | Main lesson content (HTML/Markdown, required if contentType !== "mixed") | |
| isDraft | No | Is draft (optional, default: true) | |
| duration | No | Lesson duration in minutes (optional, default: 0) | |
| videoUrl | No | Video URL (for video type lessons) | |
| resources | No | Additional resources | |
| contentType | Yes | Content type (optional) | |
| description | No | Lesson description (optional) | |
| professions | No | Array of profession IDs from libservice (optional, can be empty array) | |
| contentBlocks | No | Content blocks (required if contentType === "mixed") | |
| practiceExercises | No | Practice exercises |