Send the files of a code's page
set_filesWith the key: adds, replaces or removes the files of the page a code can open (HTML, JavaScript, styles, pictures; 1 MB in total). The page starts at index.html. Afterwards set the code to the action {"kind": "page"} with set_code.
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": {
"code": "<code>",
"token": "<token>",
"files": "<files>"
},
"name": "set_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The 7 characters at the end of the short address. | |
| files | Yes | Files to add or replace, or to remove. A name is letters, digits, dots, dashes and underscores with up to three folders, like "index.html" or "img/logo.png". | |
| token | Yes | The key of the code, from the answer that made it. With an account key, "" for a code of that account. |