llms.txt
A structured index of all documentation pages. Gives AI tools a map of what’s available.
llms-full.txt
The complete documentation in a single Markdown file. Full context for any AI tool.
llms.txt standard is like a sitemap for AI. It helps LLMs understand your documentation structure and find relevant content — similar to how sitemap.xml helps search engines.
| File | What it contains | Best for |
|---|---|---|
llms.txt | Page titles, URLs, and descriptions | Quick overview, navigation, finding specific topics |
llms-full.txt | All documentation content in one file | Full context, comprehensive answers, deep understanding |
/.well-known/llms.txt and /.well-known/llms-full.txt for tools that follow the .well-known convention. Every page in the documentation can be fetched as raw Markdown by appending .md to its URL (e.g., https://docs.x.com/tools/llms-txt.md).
How to use it
Most AI tools accept URLs directly. Just provide the URL and the tool will fetch and parse the content:- Grok: Paste
https://docs.x.com/llms-full.txtinto the chat and ask questions about the X API - Cursor / Windsurf: Add
https://docs.x.com/llms-full.txtas documentation context for your project - Custom agents: Fetch the file programmatically and include it in your system prompt or context window