Subchapter 2.8
references/remote-docs.mdMarkdown5 KBView on GitHub
How to look up current documentation from https://mastra.ai when local packages aren’t available or you need conceptual guidance.
Use this when:
Mastra docs are organized at https://mastra.ai (opens in a new tab):
The main llms.txt file provides an agent-friendly overview of all documentation: https://mastra.ai/llms.txt (opens in a new tab)
This returns a structured markdown document with:
Use this first to understand what documentation is available and where to find specific topics.
Documentation follows predictable URL patterns:
https://mastra.ai/docs/{topic}/overviewhttps://mastra.ai/reference/{topic}/https://mastra.ai/guides/{topic}/Examples:
https://mastra.ai/docs/agents/overviewhttps://mastra.ai/docs/workflows/overviewhttps://mastra.ai/reference/workflows/workflow-methods/Critical feature: Send the text-markdown request header or add .md to any documentation URL to get clean, agent-friendly markdown.
https://mastra.ai/reference/workflows/workflow-methods/thenhttps://mastra.ai/reference/workflows/workflow-methods/then.mdThe .md version:
Start here to understand what’s available:
https://mastra.ai/llms.txtThis provides:
Option A: Use information from llms.txt The main llms.txt will guide you to the right section.
Option B: Construct URL directly
https://mastra.ai/docs/{topic}/overview
https://mastra.ai/reference/{topic}/Add .md to the end of any documentation URL:
https://mastra.ai/reference/workflows/workflow-methods/then.mdThe markdown will include:
https://mastra.ai/docs/agents/overviewhttps://mastra.ai/docs/agents/overviewhttps://mastra.ai/docs/agents/toolshttps://mastra.ai/docs/memory/overviewhttps://mastra.ai/docs/workflows/overviewhttps://mastra.ai/docs/workflows/overviewhttps://mastra.ai/reference/workflows/workflow-methods/https://mastra.ai/docs/tools/overviewhttps://mastra.ai/docs/agents/toolshttps://mastra.ai/docs/memory/overviewhttps://mastra.ai/docs/memory/overviewhttps://mastra.ai/docs/rag/overviewhttps://mastra.ai/reference/rag/vector-databasesWebFetch({
url: "https://mastra.ai/llms.txt",
prompt: "Where can I find documentation about workflow methods like .then()?"
})This will point you to the workflows reference section.
https://mastra.ai/reference/workflows/workflow-methods/then.mdWebFetch({
url: "https://mastra.ai/reference/workflows/workflow-methods/then.md",
prompt: "What are the parameters for the .then() method and how do I use it?"
})| Situation | Use |
|---|---|
| Packages installed locally | Embedded docs (guaranteed version match) |
| Packages not installed | Remote docs |
| Need conceptual guides | Remote docs |
| Need exact API signatures | Embedded docs (if available) |
| Exploring new features | Remote docs (may be ahead of installed version) |
| Need working examples | Both (embedded for types, remote for guides) |