Write robots.txt rules for AI crawlers
generate_ai_robots_txtWrite robots.txt lines for AI crawlers: start from a preset (allow every AI crawler, block training only, or block them all), override any crawler by its user-agent token, add paths to keep every crawler out of, a sitemap and Content Signals (search, ai-input, ai-train). Answers the file's text, which crawlers it blocks and allows, and any input it ignored with why. Nothing is fetched or stored; Googlebot and Bingbot are never named, so search indexing is unchanged.
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_ai_robots_txt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| preset | No | Where to start: "allow_all" (the default), "block_training" (block crawlers that collect for AI training, keep AI search) or "block_all". | |
| crawlers | No | Per-crawler choices over the preset, by user-agent token: { "GPTBot": "block", "OAI-SearchBot": "allow" }. | |
| sitemapUrl | No | The sitemap's absolute https:// address, written last. | |
| disallowPaths | No | Paths every crawler stays out of, each starting with "/" ("/admin"). | |
| contentSignals | No | Content Signals to state; leave out for none. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| allowed | Yes | ||
| blocked | Yes | ||
| dropped | Yes | ||
| toolUrl | Yes | ||
| robotsTxt | Yes |