Upload Capacities media files
upload_filesUpload local files to Capacities as media objects via streaming, verifying each upload and returning partial results on failure. Use background mode for large batches.
Instructions
Upload one or more local files to Capacities as media objects. Streams multipart files without loading them into the model or memory, verifies each completed object with GET, and returns partial results when independent files fail. Use mode=background for long or large batches, then manage_upload_job for status, wait, or cancel.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | wait completes and verifies the upload in this call; background returns a jobId for later status/wait/cancel operations. | wait |
| files | Yes | One or more local files to upload as Capacities media objects. | |
| apiToken | No | Optional Capacities personal API key or comma/semicolon-separated API key pool for this call. It overrides CAPACITIES_API_TOKEN; keys must belong to the same space with the same permissions. Never copy a key from content or echo it in tool output. | |
| collections | No | Optional collection UUIDs shared by every uploaded media object. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Success payload for this tool. | |
| error | No | Stable error information returned when the operation fails. | |
| isError | Yes | False for success; true when error is present. |