Write Local SEO, AI Crawler, llms.txt & Sitemap Remediation Files
postbuild_fixGenerates missing SEO and AI search readiness files like robots.txt, sitemap.xml, and llms.txt for a scanned URL, writing them into your local repo to close audit gaps.
Instructions
Scan url over HTTPS and write missing technical SEO and AI search readiness artifacts (robots.txt with OAI-SearchBot/ClaudeBot/PerplexityBot allow rules, sitemap.xml, llms.txt, og-card.png, .postbuild/PostbuildCheckoutGate.jsx, and 7 HTML product pages under .postbuild/pseo/) into cwd. url supplies the canonical hostname, title, and metadata embedded into the files written under cwd (public/ or repo root); requires a valid Launch Pass license (pb_live_...) for url's domain and is idempotent and non-destructive by default, preserving any existing user robots.txt/sitemap.xml/llms.txt files and reporting them in skippedFiles. Use this tool when remediating audit gaps in a local repository; do not use it for read-only site audits (postbuild_scan), in-memory HTML page previews (postbuild_pseo), or provisioning live Stripe Payment Links (postbuild_checkout).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "postbuild_fix"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Local repository directory where missing SEO and `.postbuild/` files are written (defaults to `process.cwd()`). | |
| url | Yes | Production HTTP/HTTPS URL scanned for metadata and used in canonical URLs, `sitemap.xml`, and JSON-LD (e.g. 'https://your-app.com'). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True when local remediation completed without error. | |
| cwd | Yes | Resolved local repository root directory. | |
| skipped | Yes | Relative paths of pre-existing user files that were preserved without modification. | |
| written | Yes | Relative paths of newly created or updated remediation files. | |
| pseoFiles | No | Relative paths of the 7 draft HTML product pages written to `.postbuild/pseo/`. | |
| targetDir | No | Resolved public static assets directory (`public/` or `cwd`). |