robots.txt generator
ayrank_robots_txt_generateDraft a robots.txt that allows all known crawlers except the ones you block, with optional sitemap and blocked paths. Returns plain text only; use the test tool to check an existing file.
Instructions
Use to draft a robots.txt that allows every known crawler except the ones listed in block. It returns text only and writes nothing to any site. Not for testing an existing robots.txt (use ayrank_robots_txt_test).
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": "ayrank_robots_txt_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| block | No | Comma-separated crawlers to disallow. Known: GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, PerplexityBot, Google-Extended, Applebot-Extended, Googlebot, Bingbot. | |
| sitemapUrl | No | Absolute http(s) URL of the sitemap. | |
| blockedDirs | No | Comma-separated paths to disallow for every crawler, like /admin,/private. |