import_media
Import media files into the library using a direct URL or base64-encoded data, with support for Dropbox, Canva, and direct uploads.
Instructions
Import a file into the library. Two modes: (1) by URL — pass url (HTTPS direct-download, 200MB cap, e.g. Dropbox/Canva); (2) by base64 — pass data (raw bytes, 3MB cap) + mimeType. Use source: 'direct' for base64 uploads from agent memory.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | HTTPS direct-download URL (mutually exclusive with `data`) | |
| data | No | base64-encoded file bytes, 3MB raw max (mutually exclusive with `url`) | |
| name | Yes | ||
| bytes | No | Optional file size in bytes for early rejection | |
| source | Yes | ||
| mimeType | No | Required when using `data`; optional with `url` |