How to Use AI with BattleChain Docs
Give your AI agent full context on BattleChain by pointing it at our machine-readable docs
Overview
BattleChain publishes machine-readable versions of these docs so AI agents can ingest them directly:
| File | Contents | Size |
|---|---|---|
/llms.txt | Table of contents with page titles, descriptions, and links | ~4 KB |
/llms-full.txt | Complete text of every page as clean markdown | ~100 KB |
Both files follow the llms.txt convention and are regenerated on every deploy.
Open in Your AI
Start a conversation with full BattleChain docs loaded as context:
Or paste this prompt into any AI:
Read https://docs.battlechain.com/llms-full.txt and use it to answer my questions about BattleChain.
Cursor
Add BattleChain as a doc source so Cursor indexes it automatically. Go to Cursor Settings → Features → Docs, click Add, and enter:
https://docs.battlechain.com/llms-full.txt
Once indexed, Cursor's AI will have full BattleChain context when you reference @docs in chat.
Custom Agents
If you're building an agent that interacts with BattleChain, fetch the docs at startup and include them as context:
- Full context — fetch
/llms-full.txtand add it to the system prompt (~100 KB, fits in most context windows) - Selective context — fetch
/llms.txtto build a page index, then retrieve individual pages on demand for RAG pipelines
import httpx
docs = httpx.get("https://docs.battlechain.com/llms-full.txt").text
messages = [
{"role": "system", "content": f"BattleChain documentation:\n\n{docs}"},
{"role": "user", "content": user_question},
]