upload_media
Store a photo or video the human wants in a post, from an https URL or base64. Returns a workspace-owned URL to put in any media slot of a film body (describe_film lists the slots) — the renderer reads it directly. Images: PNG/JPG/WebP up to 15 MB. Videos: MP4/MOV/WebM up to 200 MB. The same bytes are stored once (content-hashed).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public https URL of the photo or video to store. Pass this or base64. | |
| kind | No | auto (default), image, or video. Detected from the bytes when auto. | auto |
| name | No | Human-readable name for the file. | |
| base64 | No | The media bytes as base64, if you have no URL. Pass this or url. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||