Tools
list_courses, discover_courses, enroll_course, search_lessons, list_lessons, get_lesson, get_chunk, create_flashcard, append_note, generate_presentation, create_presentation, update_presentation, replace_presentation_slides, add_presentation_slide, update_presentation_slide, get_presentation, list_presentations, get_transcript, create_audio_overview, get_audio_overview, get_audio_overview_url, get_course_progress, get_recent_activity, generate_quiz, grade_quiz, get_quiz_results.
Read
list_coursesList the courses in your library (created or enrolled) with id and completion progress. Call this first to find course ids for scoping.
discover_coursesBrowse the public course catalog (/discover): published and featured courses with subject, tags, summary, lesson count, and whether each is already in your library.
| Name | Type | Default | Description |
|---|---|---|---|
| query | string | — | Free-text match on title, summary, tags, and creator. |
| subject | string | — | Exact subject name. An empty result lists the valid subjects. |
| tags | string[] (≤8) | — | Only courses carrying every one of these tags. |
| featured_only | boolean | false | Only featured courses. |
| limit | integer (1–25) | 10 | Results per page. |
| offset | integer | 0 | Skip this many results, for paging. |
search_lessonsHybrid semantic + keyword search across lesson content (local embeddings, no API key). Returns the most relevant sections.
| Name | Type | Default | Description |
|---|---|---|---|
| query* | string | — | Natural-language search query. |
| course_id | string | — | Restrict to one course id (from list_courses). Omit to search the whole library. |
| limit | integer (1–20) | 8 | Max sections to return. |
list_lessonsList lesson titles within a course, optionally filtered to one module.
| Name | Type | Default | Description |
|---|---|---|---|
| course_title* | string | — | Course title substring (case-insensitive). |
| module_name | string | — | Optional module-name substring filter. |
get_lessonFetch the full markdown body of one lesson by lesson_id.
| Name | Type | Default | Description |
|---|---|---|---|
| lesson_id* | string | — | The lesson UUID (from search_lessons or list_lessons). |
get_chunkFetch one lesson section by lesson_id + anchor, as returned by search_lessons. Use to read a hit in full when the preview was truncated.
| Name | Type | Default | Description |
|---|---|---|---|
| lesson_id* | string | — | The lesson UUID. |
| anchor* | string | — | The chunk anchor slug from a search hit. |
Write
enroll_courseAdd a /discover course to your library so it shows in list_courses, the sidebar, and progress tracking. Safe to repeat; re-enrolling an archived course restores it. Only published or catalog courses can be enrolled in.
| Name | Type | Default | Description |
|---|---|---|---|
| course_id | string | — | Course id from discover_courses. |
| slug | string | — | Listing slug from discover_courses (pass this or course_id). |
These tools add flashcards and notes to the lessons in your library. Note text enters semantic search asynchronously.
create_flashcardCreate a flashcard (front question + back answer) on a lesson. Appears in the lesson's deck immediately.
| Name | Type | Default | Description |
|---|---|---|---|
| lesson_id* | string | — | The lesson UUID the card belongs to. |
| question* | string | — | Front / question. |
| answer* | string | — | Back / answer. |
append_noteAppend a timestamped markdown note entry to a lesson's notes.
| Name | Type | Default | Description |
|---|---|---|---|
| lesson_id* | string | — | The lesson UUID the note belongs to. |
| content_md* | string | — | Markdown body of the note. |
Quizzes
Quiz yourself on a lesson or a whole course. Questions come from the lesson's own
authored quiz blocks first, then AI-written questions grounded in the lesson
sections, each cited with a link.
How grading works. generate_quiz returns a quiz_id and numbered questions
(1-based n; choices are lettered A, B, C…; multi-answer questions say "Select all
that apply"). The client asks you the questions, then calls grade_quiz with your
answers. Multiple-choice answers are graded exactly (a multi-answer question needs
every correct letter and no wrong ones); short answers are graded by AI. Correct is
1 point, partially correct half a point, and the score is shown in points (for
example 2.5/5 points), with a line counting the correct and partially correct
answers. You may submit only some questions: only answered questions are explained,
and unanswered ones count as incorrect. A submission with no valid answers (for
example, every n unknown) records nothing. Each quiz can be graded up to 3 times;
the limit is checked before any AI grading runs. Pass
client_request_id and reuse it when retrying: with one, a repeat or concurrent call is
neither graded nor charged twice (without one, retries are graded and charged again). Questions you answered incorrectly are added to the
lesson's flashcard deck (turn off with add_misses_to_deck: false); unanswered
questions never are. Passing a quiz does not mark a lesson complete.
Cost. Quizzes made only from authored questions and multiple-choice grading are free. Generating AI-written questions counts as 2 usage units, and grading short answers counts as 1 per submission that includes one, against your free usage limits. If the grader can't return a verdict for every answered short answer, the whole call fails, the usage unit is refunded and no attempt is recorded, so you can retry. AI quiz generation is also capped at 30 quizzes per 24 hours; the cap counts AI-generated quizzes only, not quizzes built entirely from authored questions.
Threat model. Quizzes are an honest self-check, not proctoring. The lesson
markdown returned by get_lesson, get_chunk and search_lessons already contains
the answers to the lesson's authored ```quiz blocks, so an agent that read the
lesson can know them. For AI-generated questions, the answer key stays on the server
and is revealed only for the questions you answered. Course titles appear in results only
while you can still access the course.
generate_quizCreate a quiz on one lesson or across a course, grounded in lesson sections and cited with links. Authored questions are used first, the rest are generated.
| Name | Type | Default | Description |
|---|---|---|---|
| lesson_id | string | — | Lesson to quiz on. Pass exactly one of lesson_id or course_id. |
| course_id | string | — | Course for a course-wide quiz, which samples up to 4 lessons (authored quizzes first, then your weakest or most recent). |
| anchor | string | — | Focus a lesson quiz on one section (needs lesson_id). |
| count | integer (1–10) | 5 | Number of questions. |
| difficulty | easy | medium | hard | medium | Difficulty of generated questions. |
| type | multiple_choice | short_answer | mixed | multiple_choice | Question type. mixed is multiple choice plus roughly a third short answer. |
| source | auto | authored | generated | auto | auto = authored first, then generated; authored = only the lesson's own multiple-choice questions, never uses AI (can't produce short answers); generated = all AI-written. |
| client_request_id | string | — | Idempotency key: a retry returns the same quiz instead of creating another. |
grade_quizGrade your answers to a quiz from generate_quiz. Returns the score in points, per-question explanations for answered questions, and review links.
| Name | Type | Default | Description |
|---|---|---|---|
| quiz_id* | string | — | The quiz_id from generate_quiz. |
| answers* | object[] (1–10; text ≤ 2000 chars) | — | Each item has n (1-based question number) and either choice (array of option letters, e.g. ["A","C"]) or text (your own words, for short answers). |
| add_misses_to_deck | boolean | true | Add answered-incorrect questions to the lesson's flashcard deck. |
| client_request_id | string | — | Optional idempotency key. Pass one and reuse it on retries: with it, a repeat or concurrent call is not graded or charged twice. |
get_quiz_resultsYour recent quiz attempts and weak areas: the lesson sections you miss most (first attempts only), with links to review them.
| Name | Type | Default | Description |
|---|---|---|---|
| quiz_id | string | — | Only this quiz. |
| lesson_id | string | — | Only quizzes on this lesson. |
| course_id | string | — | Only quizzes in this course, including course-wide quizzes. Pass at most one of quiz_id, lesson_id, course_id. |
| limit | integer (1–50) | 10 | How many recent attempts to list. |
Presentations
Short slide decks for team kickoffs when a course is assigned. View at
/presentations/<id>; download .pptx from /api/presentations/<id>/pptx.
Ready decks are readable by anyone with course access; only the owner can edit.
generate_presentationAI-generate a 6–12 slide deck from a course, module, or lesson. Default purpose is intro (syllabus-aware kickoff template).
| Name | Type | Default | Description |
|---|---|---|---|
| scope_type* | 'lesson' | 'module' | 'course' | — | Prefer 'course' for team intros. |
| course_id* | string | — | Course UUID. |
| lesson_id | string | — | Required when scope_type='lesson'. |
| module_name | string | — | Required when scope_type='module'. |
| purpose | 'intro' | 'overview' | 'summary' | intro | Deck intent. |
| force | boolean | false | Bypass sources_hash cache. |
create_presentationCreate a presentation from an explicit slides array (agent-authored).
| Name | Type | Default | Description |
|---|---|---|---|
| course_id* | string | — | Course UUID. |
| title* | string | — | Deck title. |
| slides* | array | — | Ordered slides with title, optional body_md / speaker_notes_md / layout. |
| scope_type | 'lesson' | 'module' | 'course' | course | Scope. |
| purpose | 'intro' | 'overview' | 'summary' | intro | Deck intent. |
update_presentationUpdate title and/or purpose on a presentation you own.
| Name | Type | Default | Description |
|---|---|---|---|
| presentation_id* | string | — | Presentation UUID. |
| title | string | — | New deck title. |
| purpose | 'intro' | 'overview' | 'summary' | — | New purpose. |
replace_presentation_slidesReplace ALL slides on a presentation you own.
| Name | Type | Default | Description |
|---|---|---|---|
| presentation_id* | string | — | Presentation UUID. |
| slides* | array | — | New ordered slides array. |
add_presentation_slideAppend or insert one slide on a presentation you own.
| Name | Type | Default | Description |
|---|---|---|---|
| presentation_id* | string | — | Presentation UUID. |
| title* | string | — | Slide title. |
| body_md | string | — | Markdown body. |
| position | integer | — | 0-based insert index; omit to append. |
update_presentation_slidePatch one slide by 0-based position on a presentation you own.
| Name | Type | Default | Description |
|---|---|---|---|
| presentation_id* | string | — | Presentation UUID. |
| position* | integer | — | 0-based slide index. |
| title | string | — | New title. |
| body_md | string | — | New body. |
get_presentationRead one presentation by id — metadata plus ordered slides (owner any status; others only ready + course access).
| Name | Type | Default | Description |
|---|---|---|---|
| id* | string | — | Presentation UUID. |
list_presentationsList presentations. Default: yours. mine_only=false includes course-shared ready decks.
| Name | Type | Default | Description |
|---|---|---|---|
| course_id | string | — | Optional course UUID filter. |
| mine_only | boolean | true | Set false to include shared ready decks. |
Video lessons
Read the timestamped transcript behind a video lesson in your library.
get_transcriptFetch a video lesson's raw timestamped transcript (one [h:mm:ss] line per segment).
| Name | Type | Default | Description |
|---|---|---|---|
| lesson_id* | string | — | The video lesson's UUID. |
Audio overviews
A roughly five-minute spoken overview (mp3) of a lesson, module, or course.
create_audio_overviewGenerate a single-voice audio overview. Takes about 60–120 seconds; re-running on unchanged content returns the cached overview instantly.
| Name | Type | Default | Description |
|---|---|---|---|
| scope_type* | lesson | module | course | — | What the overview covers. |
| course_id* | string | — | Course id (from list_courses or get_lesson). |
| lesson_id | string | — | Required when scope_type is lesson. |
| module_name | string | — | Required when scope_type is module. |
| force | boolean | false | Generate a fresh overview even if one exists for this content. |
get_audio_overviewRead one audio overview: status, scope, duration, and its script once ready.
| Name | Type | Default | Description |
|---|---|---|---|
| id* | string | — | The audio overview id. |
get_audio_overview_urlGet a fresh signed URL for an overview's mp3 when the previous one expired.
| Name | Type | Default | Description |
|---|---|---|---|
| id* | string | — | The audio overview id. |
| ttl_seconds | integer | 900 | URL lifetime in seconds (60–3600). |
Progress & activity
get_course_progressWhere you left off in one course: the lesson to resume, your most recent activity, a grouped recap, and completion counts.
| Name | Type | Default | Description |
|---|---|---|---|
| course_id* | string | — | Course id (from list_courses). |
get_recent_activityYour recent learning activity, newest first: notes, highlights, completions, chat citations, flashcard reviews, generated reviews, and quiz attempts.
| Name | Type | Default | Description |
|---|---|---|---|
| course_id | string | — | Only activity in this course. |
| lesson_id | string | — | Only activity on this lesson. |
| kinds | string[] | — | Filter: note, highlight, completion, chat_citation, flashcard_review, review_generated, quiz. |
| limit | integer | 25 | Max rows (1–100). |