Add llms.txt source
llms_add_sourceRegister a documentation source with domain and coverage, validate its llms.txt index, and keep it available after server restarts.
Instructions
Add a source to the registry; survives a server restart.
The index is downloaded and validated: it must be text with links, not an
HTML stub. The size of llms-full.txt next to it is found via HEAD; other
variants are shown later by llms_index.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | No | Address of `llms.txt`, if not `https://<domain>/llms.txt`. | |
| covers | Yes | What the documentation covers, in one phrase. | |
| domain | Yes | Name to register the source under (`docs.example.com/v2`). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| index | Yes | the `llms.txt` address | |
| state | Yes | ||
| covers | Yes | ||
| detail | Yes | response code or reason; empty when ok | |
| domain | Yes | how to name the source in llms_index/llms_search | |
| default | No | built-in; cannot be removed | |
| full_size | No | llms-full.txt size in bytes; null means no full file |