Upload a file to your Library
soclo_library_uploadUpload one selected image, video or audio file to the same owner upload namespace the app uses. Needs the separate manage:library grant and confirm: true after the owner approved the exact item. Pass a stable UUID uploadId, the exact SHA-256 digest of the file, a supported MIME type, and either base64 bytes or a public https sourceUrl. Upload stores bytes only: call soclo_library_finalize to obtain the durable asset id. After interruption read soclo_library_upload_status with the original uploadId; never substitute ids or repeat blindly. Debits no customer credits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bucket | No | ||
| sha256 | Yes | ||
| confirm | No | ||
| mimeType | Yes | ||
| uploadId | Yes | ||
| sourceUrl | No | A public https URL to fetch the file from (no credentials, private hosts or automatic redirects to them; up to 20 MiB, matching finalization). Use instead of contentBase64 for larger files. | |
| contentBase64 | No | The file bytes, base64. Inline base64 must fit the full 1 MiB MCP request envelope; use sourceUrl for larger selected files. |