Upload a screenshot or song
upload_mediaAdds an image from a public URL (or small base64) to the project's media library, analyzes its colors and aspect, and optionally puts it on a device screen. A song (MP3, M4A, WAV …) is analyzed for tempo and drops; in a launch video it becomes the music. For files on your own disk use get_upload_link instead — never pipe base64 through a shell into this tool, it is slow and gets cut off.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public http(s) URL of a PNG/JPEG/WebP/AVIF image. | |
| name | No | Optional file name for the media library, e.g. "home.png". | |
| assign_to | No | Device id whose screen should show it. | |
| project_id | Yes | Project id (from create_project or list_projects). | |
| data_base64 | No | Only for tiny images or clients without a shell. A screenshot is ~100 000 base64 characters and takes minutes to write — for files on disk use the curl commands from create_project / get_upload_link. |