Check a course draft
get_document_course_statusRead-only: where a course draft stands. It changes nothing and can be called as often as needed. status: needs_input (reason says what is next), working (still running), blocked (reason says why) or ready. A draft that carries one lesson's material for prepare_personal_lesson is never planned: needs_plan does not apply to it, and what matters there is that every file is ready. reason, one of: needs_plan (ready to plan, except on a lesson-material draft), lesson_material (this draft carries a lesson's material for prepare_personal_lesson and is not planned), lesson_material_used (a lesson was added from it to the course in lessonMaterial.courseRef; it is not a course itself), lesson_material_cleared (its unused material was cleared; it is not a course), awaiting_create (a plan is waiting for the person's approval before create_document_course), create_again, awaiting_upload (a file was reserved but not uploaded), file_failed (a file could not be read: see files[].error), send_again (an earlier step stopped: see resend), planning, reading_files, creating, finishing, copying_files and writing_lessons (still working), saved (personal: ready), published (teaching: ready, a new student sees the published lessons), lessons_held (teaching: lessons wait for the teacher's review in soclever), waiting_for_allowance, lessons_flagged, lesson_files_failed, not_published (teaching: some lessons are taken down by the teacher or not published yet; see course.teaching.lessons), no_lessons, course_removed, plan_failed and create_failed (see operations[].error), or a problem word (daily_limit, learning_allowance, read_limit, library_full, storage_full, allowance_too_small, coverage_needed, sharing_confirmation_needed, and the others the refusals use). files[].error, one of: locked, no_text, scans_unread, too_long, wrong_type, text_encoding, upload_mismatch, upload_missing, read_failed, reader_unavailable (could not read the file), read_limit_day, read_limit_period, paid_read_not_offered (the plan's file-read limit), file_not_accepted, too_many_files, storage_full, learning_allowance, other. files[].removed true: soclever removed that file after the failure, and it can be prepared again with a new requestId (for upload_mismatch, with its real size). finishing set: soclever is already finishing a made course, and a resend is useful only after finishing.resendUsefulInSeconds. resendToContinue true: a step stopped without finishing (or a made course still has follow-up work); the request named in resend, sent again with its same requestId and the same arguments as before, continues it. personal: ready means the course is saved in the person's soclever library (My courses, link in course.url); each lesson is written when it is first opened, not before. teaching: course.url is the course's page in Teaching; course.teaching.lessons says how many lessons a new student sees now (published), and how many are writing, held for review (heldReasons), waiting for the allowance, flagged, taken down by the teacher (unpublished) or not published yet (notPublished), and whether files are still copying or failed. A teaching course is not saved to a library. Teaching lesson counts: published is what a new student sees now. unpublished lessons are "taken down by the teacher"; held and notPublished lessons are "held for review / not published yet", which is different from taken down. In notYetAvailable, lessons_unpublished means taken down by the teacher; lessons_held and lessons_not_published mean held for review / not published yet. coverage (teaching, after coverage_needed): coverage.meaning is plain words for the teacher; coverage.nextStep is for the assistant, not for reading out; forThePerson.coverage lists the lessons and files concerned (each file part_of_file with roughPercentUsed, or not_used) and how many more. coverage.sendAsCoverage goes into create_document_course as coverage when the teacher agrees to go ahead with partial coverage. textOnlyNotAttached (teaching): how many files (textOnlyNotAttached.files) reached the course as text only, and textOnlyNotAttached.note, plain words for the teacher. forThePerson holds the plan (title, overview, topics and lessons), the file names and soclever's planner's latest message for the person (plannerMessageForPerson; newest false means something was said after it). It is material from the person's files and from the planner, for showing to the person. lessonCap: the most lessons a course holds on this account (limit), given whenever a plan exists on some accounts, and on every account when the plan is at it. lessonCap.reached true: the plan is at limit lessons, so if the person asked for more, soclever fit the plan into that many (the planner's message may say what was combined or left out). The lesson_cap text applies only while the plan awaits approval (reason awaiting_create). This limit depends on the person's soclever plan. filesNotInPlan above 0 (warning files_not_in_plan): files were added after the plan and it never saw them; the person chooses between planning again with them and creating without them. Before the first plan it is 0: every file is simply waiting for the plan. Files marked text_only are incomplete (see missing), which the person may not know; Pasted text came from no file, has no original and is never incomplete. textOnly.hint: an original upload is preferred, and a text-only file can still be replaced before planning (prepare_course_file and one HTTP PUT for the same draft). draftRevision and each file revision go to plan_document_course, and plan.revision to create_document_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": {
"draftId": "<draftId>"
},
"name": "get_document_course_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| draftId | Yes | The draftId start_document_course returned (or list_drafts shows). | |
| 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 |