Begin a file upload
begin_asset_uploadBegin uploading a local media file, a data file (.json, .geojson, .topojson, .csv, .tsv or .svg, up to 2 MB) a component reads with , or a font file (.ttf, .otf, .woff or .woff2, up to 10 MB) whose family text then uses (guide/fonts). Supply filename, MIME type and byte size. Returns a new Asset ID for this upload and the upload command or commands. Run them from the agent machine, in order, then call complete_asset_upload. Do not send bytes through tool arguments. If an upload command cannot connect (a proxy answers 403 or connect_rejected, the connection is refused, or the host name does not resolve), do not retry it. If you have the upload_files tool, call it instead: it gives the user the project's link, where they add the file from their device.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | Yes | ||
| fileName | Yes | ||
| mimeType | Yes | ||
| projectId | Yes | The project this call runs on without changing the open project. null (or leaving it out) uses the open project. wait_for_jobs takes the projectId of the calls that started the jobs. | |
| endSeconds | Yes | Video range end in source seconds. Both bounds are required for a range; the rest is discarded. Imported video starts at zero. Cannot combine with keepOriginal. | |
| keepOriginal | Yes | Video only. null or false keeps one copy at up to 1080p, which both preview and export use. true also keeps the original file, and export uses it, so a 4K source exports at 4K. Default to null. Pass true only when the user asks to keep the original or export at full quality. | |
| startSeconds | Yes | Video range start in source seconds. Use null with endSeconds null for the whole file. |