Start a course from documents
start_document_courseCreates an empty course draft that the person's own documents will become, and returns its draftId. destination 'personal' (the default) is the person's own library; 'teaching' is a teacher's classes and may not be available. A personal draft needs the person's library to exist (get_connection_status: libraryStarted; libraryNote explains it to the person otherwise); a teaching course does not. teaching: soclever asks a teacher one sharing question before their first course through an assistant (get_teaching_sharing_question, which needs no draft). When the teacher has not answered yes yet (alreadyAgreed false), the question comes before the draft, and a no means no draft and no course. The course is then built in steps: each file is added (prepare_course_file and an upload, or add_course_text), get_document_course_status shows when every file is ready, plan_document_course makes a plan, and create_document_course makes the course from a plan revision the person has approved. forLesson: true makes a personal draft that holds one lesson's material for prepare_personal_lesson instead; that draft is never planned and does not count toward course drafts. list_drafts lists the drafts started through an assistant.
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>"
},
"name": "start_document_course"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| forLesson | No | true: the draft only carries ONE lesson's material for prepare_personal_lesson (personal only). | |
| 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. | |
| destination | No | Where the course goes: 'personal' (the person's own soclever library, the default) or 'teaching' (a teacher's classes). | personal |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | ||
| error | No |