# Give your AI assistant Amiril's docs with llms.txt

Every page of Amiril's docs is Markdown, listed in llms.txt. Your AI assistant can fetch or search them, and a note you add to your AGENTS.md tells it where.

Your AI assistant can read Amiril's docs as Markdown before it writes code that uses Amiril. It can fetch the one page it needs, or search them all.

## Fetch any page as Markdown [#fetch-any-page-as-markdown]

Any page is Markdown with `.md` on the end of its address:

```bash
curl https://docs.amiril.ai/sdk/langgraph.md
```

Or ask for Markdown in the `Accept` header, at the address you would open in a browser:

```bash
curl -H "Accept: text/markdown" https://docs.amiril.ai/sdk/langgraph
```

## List every page with llms.txt [#list-every-page-with-llmstxt]

`https://docs.amiril.ai/llms.txt` lists every page with its Markdown address and one line about it. It also lists the pages under `/assistant/`, which are written for AI assistants and left out of this site's menu and search. They give every option, limit and error. `https://docs.amiril.ai/llms-full.txt` puts every page in this site's menu in one file.

## Search the docs through the MCP server [#search-the-docs-through-the-mcp-server]

Once you [connect your assistant](/assistants/connect), it can search the docs with four tools, such as `amiril_docs_search` for a plain-language question. They cover every page `llms.txt` lists, the `/assistant/` pages included. [Amiril MCP server tools](/assistants/tools#docs) lists all four.

The MCP server sends your assistant instructions when it connects. They ask it to read the docs before it writes a rule or changes how an agent connects, and whenever a call fails.

## Tell your assistant where the docs are [#tell-your-assistant-where-the-docs-are]

Paste this into your repository's `AGENTS.md`, or `CLAUDE.md` if you use Claude Code:

```text title="AGENTS.md"
## Amiril

This repository uses Amiril for its AI agents.

- Read Amiril's docs before adding the SDK, changing how an agent
  connects, or writing a rule. Do not guess the API.
- Every page is Markdown. https://docs.amiril.ai/llms.txt lists them.
- If the Amiril MCP server is connected, search the docs with
  amiril_docs_search, amiril_docs_grep and amiril_docs_get. Check a rule
  with amiril_rule_validate before saving it.
```

## Next steps

- [Connect an AI assistant to Amiril](https://docs.amiril.ai/assistants/connect.md): Add Amiril's MCP server to Claude Code, the Claude app, Cursor, VS Code or ChatGPT. Sign in with your Amiril account, then ask about your agents.
- [Amiril MCP server tools](https://docs.amiril.ai/assistants/tools.md): Every tool on Amiril's MCP server, grouped by what it is for. See which tools change data and which changes the assistant asks you about first.
- [Amiril MCP server for AI assistants](https://docs.amiril.ai/assistants.md): Connect Claude Code, Cursor or another AI assistant to Amiril's MCP server. The assistant can then read your traces, draft rules and search these docs.

## More detail

- [MCP server tools](https://docs.amiril.ai/assistant/mcp/tools.md): Every tool on Amiril's MCP server: what it does, whether it changes data, and its inputs. Generated from the server's tool registry.
