Draft an llms.txt file
draft_llms_txtDrafts a starter llms.txt (llmstxt.org) for a site from its home page and sitemap: an H1 with the site name, its description as the summary, and links to its main pages grouped by section, titled from the pages where they were fetched. Use it when the site has no llms.txt or a broken one. result has llmsTxt (the file text), saveAs (where it goes), links, sitemapUrls and existingLlmsTxt (the outcome of the current one). The person should edit it before publishing. Returns JSON: summary (one sentence) and result (the details below); resultId and reportUrl are null, as drafts are not saved. Errors come back as one plain sentence. Recorded: the checked domain and path (never the query string), the tool, which checks failed and the app name; never an IP address or page text.
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": "draft_llms_txt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Any page on the site; only its origin is used: an absolute http or https URL, such as https://example.com/pricing. | |
| maxLinks | No | The most page links to include, 5 to 50. Defaults to 25. |