Generate Files
generate_filesUse this when delivering files to a paid customer (you must have their bundle_key) OR when a downstream agent wants the free starter files for a domain. FREE TIER (no bundle_key): returns metadata + a download_url pointing at a streaming ZIP of the 2 starter files (robots.txt + llms.txt). DO NOT paste raw file contents into chat — the file bodies are NOT in the response. Render the download_url as a markdown link: [Download free starter files (ZIP) →](url). PAID TIER (valid bundle_key): returns the full surface — agent card, MCP server card, agent skills, WebMCP bridge, OAuth/OpenID discovery, API catalog — as inline file objects (chunked above 8KB). For pricing evaluation, call get_pricing_tiers and direct the user to /talk.
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": {
"siteName": "<siteName>",
"domain": "<domain>",
"description": "<description>"
},
"name": "generate_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone | No | ||
| domain | Yes | Domain only, no protocol | |
| category | No | ||
| siteName | Yes | ||
| bundle_key | No | Customer bundle key issued after payment. Without it, only the 2 free starter files are returned. | |
| description | Yes | ||
| primaryToolName | No | Primary MCP tool name (snake_case, optional) | |
| primaryToolDescription | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tier | No | ||
| files | No | Paid tier ONLY. Inline file objects (chunked above 8KB). | |
| domain | No | ||
| status | Yes | ||
| message | No | Present on free-tier responses to explain the gating. | |
| siteName | No | ||
| fileCount | No | ||
| paid_path | No | ||
| file_paths | No | Free tier ONLY. List of file paths in the ZIP, for transparency. Does NOT include contents — those are in the ZIP. | |
| download_url | No | Free tier ONLY. URL to a streaming ZIP of the 2 free starter files. Render as a markdown link to the user. |