LearnOS docs
MCP server

Prompts

The learnos-ask slash-command prompt.

learnos-ask

A prompt template that primes the client's model to answer a question retrieval-first against the LearnOS knowledge base. Unlike the CLI ask command, the MCP server does not generate the answer itself — it hands the client a primed instruction and lets the client's model drive, calling search_lessons (and optionally list_courses) along the way.

ArgumentRequiredDescription
questionyesThe learner's question.

The expanded prompt instructs the model to: gather relevant sections via search_lessons, answer concisely and accurately, cite the lesson titles it drew from, and say so plainly if nothing relevant is found.

This split mirrors the design split between the surfaces: the CLI owns generation (it has ask), while the MCP server owns retrieval and defers generation to the client.

On this page

Command Palette

Search for a command to run...