LearnOS docs
MCP server

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_courses

List the courses in your library (created or enrolled) with id and completion progress. Call this first to find course ids for scoping.

Returns
Markdown list of courses with id and N/total lesson progress.
discover_courses

Browse the public course catalog (/discover): published and featured courses with subject, tags, summary, lesson count, and whether each is already in your library.

Parameters
NameTypeDefaultDescription
querystring—Free-text match on title, summary, tags, and creator.
subjectstring—Exact subject name. An empty result lists the valid subjects.
tagsstring[] (≤8)—Only courses carrying every one of these tags.
featured_onlybooleanfalseOnly featured courses.
limitinteger (1–25)10Results per page.
offsetinteger0Skip this many results, for paging.
Returns
Markdown list of courses with course_id, slug, /discover URL, and library status.
search_lessons

Hybrid semantic + keyword search across lesson content (local embeddings, no API key). Returns the most relevant sections.

Parameters
NameTypeDefaultDescription
query*string—Natural-language search query.
course_idstring—Restrict to one course id (from list_courses). Omit to search the whole library.
limitinteger (1–20)8Max sections to return.
Returns
Markdown listing each hit: lesson title, heading path, course, lesson_id, anchor, and the section text (truncated to ~2400 chars with a get_chunk hint).
list_lessons

List lesson titles within a course, optionally filtered to one module.

Parameters
NameTypeDefaultDescription
course_title*string—Course title substring (case-insensitive).
module_namestring—Optional module-name substring filter.
Returns
Markdown list of lessons with their lesson_id.
get_lesson

Fetch the full markdown body of one lesson by lesson_id.

Parameters
NameTypeDefaultDescription
lesson_id*string—The lesson UUID (from search_lessons or list_lessons).
Returns
Markdown — header with course/module + the lesson body (capped to ~24k chars).
get_chunk

Fetch one lesson section by lesson_id + anchor, as returned by search_lessons. Use to read a hit in full when the preview was truncated.

Parameters
NameTypeDefaultDescription
lesson_id*string—The lesson UUID.
anchor*string—The chunk anchor slug from a search hit.
Returns
Markdown — the section's heading path and full body.

Write

enroll_course

Add 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.

Parameters
NameTypeDefaultDescription
course_idstring—Course id from discover_courses.
slugstring—Listing slug from discover_courses (pass this or course_id).
Returns
Confirmation with the course id, its URL, and suggested next tools.

These tools add flashcards and notes to the lessons in your library. Note text enters semantic search asynchronously.

create_flashcard

Create a flashcard (front question + back answer) on a lesson. Appears in the lesson's deck immediately.

Parameters
NameTypeDefaultDescription
lesson_id*string—The lesson UUID the card belongs to.
question*string—Front / question.
answer*string—Back / answer.
Returns
A confirmation message.
append_note

Append a timestamped markdown note entry to a lesson's notes.

Parameters
NameTypeDefaultDescription
lesson_id*string—The lesson UUID the note belongs to.
content_md*string—Markdown body of the note.
Returns
A confirmation message. Note: the search index is NOT updated here.

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_quiz

Create 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.

Parameters
NameTypeDefaultDescription
lesson_idstring—Lesson to quiz on. Pass exactly one of lesson_id or course_id.
course_idstring—Course for a course-wide quiz, which samples up to 4 lessons (authored quizzes first, then your weakest or most recent).
anchorstring—Focus a lesson quiz on one section (needs lesson_id).
countinteger (1–10)5Number of questions.
difficultyeasy | medium | hardmediumDifficulty of generated questions.
typemultiple_choice | short_answer | mixedmultiple_choiceQuestion type. mixed is multiple choice plus roughly a third short answer.
sourceauto | authored | generatedautoauto = 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_idstring—Idempotency key: a retry returns the same quiz instead of creating another.
Returns
A quiz_id and the numbered questions with lettered options and source links. Answers are not included.
grade_quiz

Grade your answers to a quiz from generate_quiz. Returns the score in points, per-question explanations for answered questions, and review links.

Parameters
NameTypeDefaultDescription
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_deckbooleantrueAdd answered-incorrect questions to the lesson's flashcard deck.
client_request_idstring—Optional idempotency key. Pass one and reuse it on retries: with it, a repeat or concurrent call is not graded or charged twice.
Returns
Score in points (half credit for partial short answers, e.g. 2.5/5) with a correct/partial line, attempt number (max 3), explanations and source links for answered questions, and the flashcards added.
get_quiz_results

Your recent quiz attempts and weak areas: the lesson sections you miss most (first attempts only), with links to review them.

Parameters
NameTypeDefaultDescription
quiz_idstring—Only this quiz.
lesson_idstring—Only quizzes on this lesson.
course_idstring—Only quizzes in this course, including course-wide quizzes. Pass at most one of quiz_id, lesson_id, course_id.
limitinteger (1–50)10How many recent attempts to list.
Returns
Attempts (newest first: score, attempt number, retake flag) and weak sections. Never includes answers.

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_presentation

AI-generate a 6–12 slide deck from a course, module, or lesson. Default purpose is intro (syllabus-aware kickoff template).

Parameters
NameTypeDefaultDescription
scope_type*'lesson' | 'module' | 'course'—Prefer 'course' for team intros.
course_id*string—Course UUID.
lesson_idstring—Required when scope_type='lesson'.
module_namestring—Required when scope_type='module'.
purpose'intro' | 'overview' | 'summary'introDeck intent.
forcebooleanfalseBypass sources_hash cache.
Returns
Confirmation with id, title, slide count, view path, and pptx path.
create_presentation

Create a presentation from an explicit slides array (agent-authored).

Parameters
NameTypeDefaultDescription
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'courseScope.
purpose'intro' | 'overview' | 'summary'introDeck intent.
Returns
Confirmation with id, title, slide count, view path, and pptx path.
update_presentation

Update title and/or purpose on a presentation you own.

Parameters
NameTypeDefaultDescription
presentation_id*string—Presentation UUID.
titlestring—New deck title.
purpose'intro' | 'overview' | 'summary'—New purpose.
Returns
Confirmation with updated metadata.
replace_presentation_slides

Replace ALL slides on a presentation you own.

Parameters
NameTypeDefaultDescription
presentation_id*string—Presentation UUID.
slides*array—New ordered slides array.
Returns
Confirmation with new slide count.
add_presentation_slide

Append or insert one slide on a presentation you own.

Parameters
NameTypeDefaultDescription
presentation_id*string—Presentation UUID.
title*string—Slide title.
body_mdstring—Markdown body.
positioninteger—0-based insert index; omit to append.
Returns
Confirmation with new slide count.
update_presentation_slide

Patch one slide by 0-based position on a presentation you own.

Parameters
NameTypeDefaultDescription
presentation_id*string—Presentation UUID.
position*integer—0-based slide index.
titlestring—New title.
body_mdstring—New body.
Returns
Confirmation for the patched slide.
get_presentation

Read one presentation by id — metadata plus ordered slides (owner any status; others only ready + course access).

Parameters
NameTypeDefaultDescription
id*string—Presentation UUID.
Returns
Metadata header plus each slide's title, body, and notes.
list_presentations

List presentations. Default: yours. mine_only=false includes course-shared ready decks.

Parameters
NameTypeDefaultDescription
course_idstring—Optional course UUID filter.
mine_onlybooleantrueSet false to include shared ready decks.
Returns
Markdown list of presentations with id, purpose, and view path.

Video lessons

Read the timestamped transcript behind a video lesson in your library.

get_transcript

Fetch a video lesson's raw timestamped transcript (one [h:mm:ss] line per segment).

Parameters
NameTypeDefaultDescription
lesson_id*string—The video lesson's UUID.
Returns
Markdown — a header plus the timestamped transcript (capped to ~24k chars). Empty for non-video lessons.

Audio overviews

A roughly five-minute spoken overview (mp3) of a lesson, module, or course.

create_audio_overview

Generate a single-voice audio overview. Takes about 60–120 seconds; re-running on unchanged content returns the cached overview instantly.

Parameters
NameTypeDefaultDescription
scope_type*lesson | module | course—What the overview covers.
course_id*string—Course id (from list_courses or get_lesson).
lesson_idstring—Required when scope_type is lesson.
module_namestring—Required when scope_type is module.
forcebooleanfalseGenerate a fresh overview even if one exists for this content.
Returns
The overview id, status, duration, and a signed mp3 URL valid for 15 minutes.
get_audio_overview

Read one audio overview: status, scope, duration, and its script once ready.

Parameters
NameTypeDefaultDescription
id*string—The audio overview id.
Returns
The overview's status, scope, duration, and script.
get_audio_overview_url

Get a fresh signed URL for an overview's mp3 when the previous one expired.

Parameters
NameTypeDefaultDescription
id*string—The audio overview id.
ttl_secondsinteger900URL lifetime in seconds (60–3600).
Returns
A signed mp3 URL.

Progress & activity

get_course_progress

Where you left off in one course: the lesson to resume, your most recent activity, a grouped recap, and completion counts.

Parameters
NameTypeDefaultDescription
course_id*string—Course id (from list_courses).
Returns
Resume target, latest activity, recap, and completion counts.
get_recent_activity

Your recent learning activity, newest first: notes, highlights, completions, chat citations, flashcard reviews, generated reviews, and quiz attempts.

Parameters
NameTypeDefaultDescription
course_idstring—Only activity in this course.
lesson_idstring—Only activity on this lesson.
kindsstring[]—Filter: note, highlight, completion, chat_citation, flashcard_review, review_generated, quiz.
limitinteger25Max rows (1–100).
Returns
Activity entries in time order.

On this page

Command Palette

Search for a command to run...