upload
Upload one HTML/code payload and get a public share URL plus an edit token. Each call creates a new asset unless idempotencyKey is reused. Anonymous uploads are rate-limited to 10/hour and 50/day per IP; authenticated uploads are limited per account. Content is public unless password-protected and expires after expiresIn (default 7d). Use upload_site for multi-file sites, view to read back, list_assets for your own files, or delete to remove one.
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": {
"content": "<content>"
},
"name": "upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Optional comma-separated tags. | |
| title | No | Optional title shown in the viewer and gallery metadata. | |
| content | Yes | HTML or code to publish (required, max 500 KB). | |
| filename | No | Optional display filename used in the title and download name (max 200 chars). | |
| language | No | Content language hint, e.g. html, css, js, json, markdown. Default html. | html |
| password | No | Optional password; the web view asks for it before showing content. | |
| expiresIn | No | Retention: 1h, 24h, 7d, 30d, 90d, or 0 for permanent. Default 7d. | 7d |
| description | No | Optional description for the asset. | |
| idempotencyKey | No | Optional 1-128 char retry key. Reusing it with the same payload returns the original asset; the edit token is only returned to the original caller. |