What are llms.txt and llms-full.md, and how do you build them from Confluence?
Updated 2 December 2026 ยท 7 min read
Short answer: llms.txt is a Markdown file, proposed at llmstxt.org, that gives AI agents a short curated index of links to LLM-friendly pages. llms-full.md (llms-full.txt on many sites) is a common convention, not part of the proposal, that puts the content of those pages into one file. To build them from Confluence, export a page tree to Markdown, write a title, a one-paragraph summary and a link list with a short note per page, and optionally merge the pages into one file. For internal docs, keep the files in a repository or another access-controlled place and tell your agents where they are.
What is llms.txt?
llms.txt is a Markdown file at a predictable path that tells an AI agent what a site or documentation set contains and where the clean text lives. The llmstxt.org proposal (version 2.1 as of December 2026) says agents are expected to read or search the file, then follow the relevant links. Its author reports that thousands of sites publish one and that OpenAI, Anthropic and Gemini publish llms.txt files for their developer docs.
The file can sit at a site root (/llms.txt) or at any subpath, where it covers the pages under that path. If more than one file applies, the most specific one wins. A valid file contains these parts, in this order:
- An H1 with the name of the project or site. This is the only required part.
- A blockquote with a short summary that holds the key facts needed to understand the rest.
- An optional
Base URL:line that relative links resolve against. - Zero or more Markdown blocks of detail (paragraphs, lists, code, or H3 and deeper headings). H1 and H2 are reserved.
- Zero or more H2 sections, each with an optional short summary and a list of links in the form
- [name](url): optional notes.
The proposal also recommends a clean Markdown version of each useful page at the same URL with .md added, so the links in llms.txt can point at text rather than at HTML. Recent versions dropped the special meaning that an "Optional" section had in version 1.
What is llms-full.md, and how is it different?
llms-full.md is a single Markdown file that contains the full content of many pages, usually with a title and source URL for each. It is a convention that documentation platforms adopted. For example, Mintlify's documentation describes its llms-full.txt as a file that combines the whole documentation site, with each page's title, source URL, description and Markdown content. The llmstxt.org page does not define it.
| File | Role | Size | Source |
|---|---|---|---|
llms.txt | Index: a summary plus links with short notes | Small enough to read in full | llmstxt.org proposal |
Per-page .md files | Clean text of each page, fetched when needed | One page each | Recommended by the proposal |
llms-full.md or llms-full.txt | All page content in one file | Large; may exceed a context window | Convention used by docs platforms |
The trade-off is simple. The index is cheap and lets an agent pick what to open. The full file needs no further fetching, but it spends context on every page whether or not the question needs it. Anthropic's context window documentation notes that more context is not automatically better, because accuracy and recall degrade as token count grows.
Does llms.txt make sense for internal Confluence docs?
Partly. llms.txt was designed for websites that agents fetch over HTTP. Your Confluence pages sit behind a login, and public crawlers cannot discover an internal file. The format still works as a curated map: a small index that tells an agent which exported pages exist, what each is for, and which to open first.
Use it where agents read files you control, such as a repository checked out by a coding agent, or a folder uploaded to a chat tool. Use live access when freshness matters more, for example Atlassian's MCP server, which respects each user's permissions. An exported file has no permission model, so store it where only the right people can read it.
How do you build llms.txt from a Confluence page tree?
- Choose and clean the section. Pick one page tree, such as a handbook or a service's docs. Remove or fix stale pages, duplicates and dead links first, because an index that points at wrong pages is worse than none.
- Export the pages to Markdown. Follow the export guide. The command in the next step assumes one file per page named by page ID, which is what the export script there produces. The finished example further down uses a folder layout like Folio's zip instead.
- List the tree. The descendants endpoint of the Confluence REST API v2 returns page IDs and titles. This command prints one link line per page (it returns up to 250 results per call, so follow
_links.nextfor larger trees):curl -fsS -u "$CONF_EMAIL:$CONF_TOKEN" \ "https://$CONF_SITE/wiki/api/v2/pages/$ROOT_ID/descendants?limit=250&depth=3" | jq -r '.results[] | select(.type == "page") | "- [\(.title | gsub("\\["; "\\[") | gsub("\\]"; "\\]"))](\(.id).md)"' - Write the header. Add an H1, a blockquote summary and any guidance an agent needs, such as which labels or frontmatter fields mark a page as a draft.
- Group and describe. Move the link lines under H2 headings, usually one per top-level child page, and add a note after each link. The note is what the agent uses to decide what to open, so write what the page answers, not just its title.
- Test it. The proposal suggests asking an agent questions while giving it only the llms.txt as a starting point. If it opens the wrong pages, fix the notes.
- Tell your tools where it is. Name the path in your agent instructions file, such as
AGENTS.mdorCLAUDE.md.
A finished file for an example handbook looks like this:
# Platform Handbook
> Engineering runbooks and service docs for the platform team, exported from the Confluence ENG space on 2 December 2026. Pages with status: draft in their frontmatter are unreviewed.
## Runbooks
- [Deploy to production](runbooks/deploy.md): Release steps, freeze windows and rollback triggers
- [Roll back a release](runbooks/rollback.md): How to revert a deploy and verify health checks
## Services
- [Payments API](services/payments-api.md): Endpoints, authentication and error codes
How do you build llms-full.md from Confluence?
Merge the exported pages in a deliberate order, shallow overview pages first. For each page, keep a heading with the page title and a short line with the source URL and last updated date, so an agent can cite and judge freshness. Rewrite links between pages to in-file anchors, drop navigation and table-of-contents macros, and strip duplicated boilerplate. Then count tokens before you hand the file to a tool, because a whole section can exceed what a model should read in one go. The token budget guide covers the arithmetic.
Folio for Confluence does this merge for a page tree you choose. On the Audit & fix tab, pick a section, an 8k, 32k or 128k token budget and an overflow strategy, then download llms-full.md. The file contains:
- A title, then a line with the space, export date, Context Health Score and token budget.
- A Document Map: a nested list of every page with a link to its Confluence source, its path, an approximate token count and its health score.
- One section per page, with a metadata line (source URL, path, updated date, health score and labels) followed by the page as Markdown. Internal Confluence links become in-file anchors.
- A closing list of pages left out to stay within the budget, if any.
The Document Map works as an index inside the file. Folio's export options are the single file, a nested zip of Markdown and copied Markdown, so an llms.txt that links to individual files is something you write or script over the zip. Folio works on Confluence Cloud only, exports on demand rather than on a schedule, and does not export images. Details are in the Folio docs.
What can go wrong with llms.txt files built from Confluence?
- Stale content. An export is a snapshot. Put the export date and each page's updated date in the file, and regenerate when pages change.
- Oversized packs. A full file that fills the context window leaves no room for the conversation. Prefer the index plus per-page files for large sections.
- Leaked content. The file holds everything the exporting account could read. Do not publish it on a public site.
- Vague notes. Link notes such as "Overview" tell an agent nothing. Say what question the page answers.
- Raw Confluence formatting. Feed agents Markdown, not ADF or storage format, which carry far more tokens per fact.
FAQ
Do AI tools read llms.txt automatically?
The proposal describes how agents are expected to use the file but does not bind any vendor to fetch it. Whether a given tool finds it on its own depends on that tool, so test it. For internal files, name the path in your agent instructions file, such as AGENTS.md or CLAUDE.md, so the agent knows where to look.
Should llms.txt link to Confluence URLs or to Markdown files?
Link to Markdown files. The proposal says the links in llms.txt should point to LLM-friendly content, such as Markdown versions of pages. A Confluence URL returns a login-protected web page rather than clean text, so exported Markdown works better for agents.
How is llms.txt different from robots.txt and sitemap.xml?
According to the proposal, robots.txt tells automated tools what access is acceptable, while llms.txt is read on demand when an agent needs information. A sitemap lists every indexable page, which is usually too much for a context window and often omits LLM-readable versions. llms.txt is a short, curated map.
Is llms-full.md the same as llms-full.txt?
They are the same idea. Both are a single file that contains the full content of many pages as Markdown. Documentation platforms commonly use the .txt extension, and Folio uses .md because the content is Markdown. Choose the extension your tools expect.