llms_txt_generator
Generate an llms.txt file from a sitemap URL: parse sitemap XML, group URLs by path, and output a structured markdown document with sections and optional page titles.
Instructions
Generate an llms.txt file (https://llmstxt.org spec) from a sitemap. Parses sitemap.xml + nested indexes, groups URLs by top-level path, and emits a Markdown document with H1+description+sectioned link lists. Set fetch_titles=true to pull per URL (slower, richer output).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sitemap_url | Yes | URL of sitemap.xml (or sitemap index). Nested sitemaps are followed. | |
| site_title | Yes | Site title - top H1 in the generated llms.txt file. | |
| site_description | No | One-paragraph site description placed under the H1. Optional but strongly recommended. | |
| limit | No | Max URLs to include. Truncated after sitemap parse, before title fetch. | |
| fetch_titles | No | If true, fetch each URL to extract <title> for richer links. Slower (one HEAD-ish GET per URL). Default false uses the URL path as the link text. |