generate_robots_txt
Generate a deploy-ready robots.txt from presets or custom rules, including sitemaps, allowed/disallowed paths, crawl delay, and per-user-agent directives.
Instructions
Generate a robots.txt file from configuration options. Specify sitemap URLs, disallowed/allowed paths, crawl delay, and custom per-user-agent rules. Alternatively use a preset ("permissive", "restrictive", "wordpress", "ecommerce") as a starting point. Returns the complete robots.txt content ready to deploy.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "generate_robots_txt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preset | No | Start from a named preset configuration. Custom options override preset values. | |
| allowPaths | No | URL paths to explicitly allow (used to override broader disallow rules). | |
| crawlDelay | No | Crawl-delay directive value in seconds. | |
| customRules | No | Additional per-user-agent rule blocks. | |
| sitemapUrls | No | Sitemap URLs to include in the robots.txt. | |
| disallowPaths | No | URL paths to disallow for all bots (e.g. ["/admin/", "/private/"]). |