video_editor_upload_file
Upload a SMALL RAW FILE (image/audio/short clip) into a project library by sending the bytes base64-encoded in content_base64 — like dragging a file into the editor. LIMIT: the whole JSON request is capped by the platform, so keep files under ~6 MB (base64 inflates by ~33%); larger uploads fail with a "Parse error". For anything bigger use video_editor_request_upload → PUT bytes → video_editor_add_reference(file_url) — no size cap. Becomes a persistent, @-mentionable asset. No credits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional friendly library name. | |
| filename | Yes | File name incl. extension, e.g. "product.png". | |
| project_id | Yes | ||
| content_type | No | MIME type, e.g. image/png, video/mp4, audio/mpeg. Inferred from filename if omitted. | |
| content_base64 | Yes | The file bytes, base64-encoded. Keep the file under ~6 MB. |