seo_sitemap_generator
Build XML sitemaps from user-supplied URLs. Validates entries, handles hreflang alternates, and returns serialized XML with warnings for invalid data.
Instructions
Sitemap Generator (Build XML Sitemap From URL List). Serialize a user-supplied list of URLs into a sitemaps.org 0.9-compliant XML document (operation "generate"), or build a that references already-split sitemap files (operation "generateIndex"). Does NOT crawl, fetch, or discover URLs — it formats exactly the entries you pass, XML- escaping each value, optionally emitting the xhtml namespace when hreflang alternates are present. Use seo_robots_txt_generator to control crawler access and point at the finished sitemap, or seo_hreflang_generator when you only need standalone alternate-language tags. Runs locally: read-only, non-destructive, contacts no external service, idempotent, and rate-limited (30 req/min anon, 60 authenticated). Returns the serialized XML, the entry count, the UTF-8 byte size, and warnings for invalid dates, bad changefreq/priority values, or breaches of the 50,000-URL / 50 MB protocol limits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation | Yes | "generate" builds a <urlset> from "urls"; "generateIndex" builds a <sitemapindex> from "sitemaps". Defaults to generate. | generate |
| urls | No | URL entries for operation "generate" (required, min 1 valid entry). Entries missing loc are skipped with a warning. | |
| sitemaps | No | Child-sitemap entries for operation "generateIndex" (required for that operation, min 1 valid entry). | |
| prettyPrint | No | When true, indents and newline-separates the XML; false emits a single minified line. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| success | No | True when generation succeeded. | |
| operation | No | Echo of the operation performed (generate or generateIndex). | |
| result | No | Generation payload for the chosen operation. |