Propose one new lesson for a course
prepare_personal_lessonProposes ONE new lesson for one of the person's own personal courses, from material they give, and changes nothing in the course: the answer is a proposal for the person to approve or decline. It takes the courseRef (list_courses) and its revision (get_personal_course), and a personal draft started with forLesson: true that carries only this lesson's material, with every file ready (prepare_course_file and complete_course_file, or add_course_text as the fallback). That draft is never planned or created: a draft with a plan is refused (draft_has_plan). A request that could match more than one of the person's courses is theirs to settle: the first match is not necessarily the course they mean. title, outcome and instruction come from the person's own request, in the course's language; instruction is what this lesson should cover, at most 120 characters (longer is refused, not cut). A different lesson from the SAME material after a declined proposal is a new proposal on the same draft with the same sourceIds (a new title, outcome and instruction, and a new requestId); a new draft is for new material only. append_personal_lesson adds it after the person's yes to this proposal. privacyNote (when makesCoursePrivate is true) states something the person decides on before approving: adding their own material makes the whole course private for good. filesNote, textOnlyNote and heldNote, when present, are plain words for the person about the files and who can see the lesson.
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": {
"requestId": "<requestId>",
"courseRef": "<courseRef>",
"expectedRevision": "<expectedRevision>",
"draftId": "<draftId>",
"sourceIds": "<sourceIds>",
"title": "<title>",
"outcome": "<outcome>",
"instruction": "<instruction>"
},
"name": "prepare_personal_lesson"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | The new lesson's title, from the person's request. | |
| draftId | Yes | The personal draft that holds only this lesson's material (start_document_course), never planned. | |
| outcome | Yes | One sentence: what the person will be able to do or understand after the lesson. | |
| courseRef | Yes | The courseRef from create_document_course or list_courses ('personal:…'). | |
| requestId | Yes | A random UUID, not derived from names, dates or any other content, that identifies one intended action. A retry of that same action uses the same UUID with identical arguments and returns that action's result; each new action has a new UUID. A UUID already used with different arguments is refused (request_conflict); one used for an earlier action returns that earlier result. | |
| sourceIds | Yes | 1 to 10 ready files of that draft, as get_document_course_status lists them. | |
| instruction | Yes | What this lesson should cover, in the person's words: at most 120 characters (longer is refused, not cut). Without specifics from the person, a short neutral one such as 'Teach the main ideas of this material'; it is the person's request, not wording from the material. | |
| expectedRevision | Yes | revision from get_personal_course. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No |