upload
Upload HTML or code and get a public share URL plus an edit token. Each call creates a new asset (no overwrite); content is public unless password-protected and auto-expires after expiresIn (default 7d, 0 = permanent). Anonymous uploads are rate-limited to 10 per hour per IP. Use view to read an asset back, list_assets to see your own files, or delete to remove one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | HTML or code to publish (required). | |
| filename | No | Optional display filename used in the title and download name. | |
| 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 |