Add a lesson to a course
add_lessonAdd a lesson to one of the seller's courses: a title, the lesson text and, optionally, a video link. It goes at the end of the module you name (an id from list_courses), at the end of a new module if you pass newModule, or at the end of the last module. The text is simple Markdown: # and ## headings, paragraphs, - and 1. lists, bold, italic, links and ; a video link on a line of its own plays in place. Write the lesson from what the seller gave you; never invent facts, links or results. It applies straight away, on a LIVE course too (status applied; the seller can roll it back on their Approvals page).
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": {
"course": "<course>",
"title": "<title>"
},
"name": "add_lesson"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | The lesson text, in the Markdown described above. | |
| title | Yes | The lesson's title. | |
| course | Yes | The course's id or slug, from list_courses. | |
| module | No | The module's id, from list_courses. Leave out to use the last module. | |
| account | No | Only to work in a client's account: its id from list_accounts. Leave it out for your own account. | |
| videoUrl | No | Optional video link: YouTube, Vimeo, Loom, Wistia, Tella, ScreenPal, Bunny Stream or Vidyard. | |
| newModule | No | Start a new module with this title and put the lesson in it, instead of module. |