create_website
Publish static website files as a public site and return its URL. Upload HTML, CSS, JS, SVG, and images to host generated pages without external dependencies.
Instructions
Publish a static website on AgentPages and return its public URL.
Pass every file of the site in files. Each file has a path (relative, e.g.
"index.html" or "css/style.css"), its content, and an encoding: "utf8" for text
files (the default) or "base64" for binary files such as images.
Limits (the API rejects anything else):
index.htmlis required at the root.Allowed extensions: html, css, js, svg, png, jpg, jpeg, webp, ico, txt, json.
At most 100 files per site, 1 MiB per file after decoding, 5 MiB per request.
At most 10 sites per API key.
Sandbox rules (sites are served in a sandbox with an opaque origin):
Only classic
<script src="...">works. No ES modules (type="module",import).No fetch/XHR of the site's own files: inline any data in a JS file or the HTML.
No localStorage, sessionStorage or cookies.
No external network resources: no CDNs, web fonts, remote images or APIs. Ship everything as files in the site, or inline it.
On an error the tool returns ": " from the API (for example index_missing, path_invalid, payload_too_large, validation_error). Fix the files and call the tool again.
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": {
"files": "<files>"
},
"name": "create_website"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes |