generate_robots_txt
Create a valid robots.txt file from structured input, including sitemap URL, allow/disallow paths, optional user-agent and crawl-delay, with validation and line count.
Instructions
Generate a valid robots.txt file from structured input. Provide a sitemap URL, disallow/allow paths (up to 100 each), optional user-agent and crawl-delay. Returns the generated robots.txt content with line count and validation results. Example input: { "sitemapUrl": "https://example.com/sitemap.xml", "disallowPaths": ["/admin/", "/tmp/"], "allowPaths": ["/admin/public/"] }
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 |
|---|---|---|---|
| userAgent | No | User-agent to target (default: "*" for all crawlers) | |
| allowPaths | No | Paths to explicitly allow crawling (max 100 paths). Each path should start with / | |
| crawlDelay | No | Crawl-delay in seconds (0-60). Most search engines ignore this except Bing/Yandex. | |
| sitemapUrl | No | Sitemap URL to include (must start with http:// or https://) | |
| disallowPaths | No | Paths to block from crawling (max 100 paths). Each path should start with / |