Import media from a URL
upload_media_from_urlCopy a file from a public URL into the media library. Returns the new asset id, kind, size and URL. Use for migration: pull from a Drive share, S3, an old CMS export, etc. Max 500 MB; use mint_upload_url for larger. The asset is created at the workspace root, so a key limited to one location is refused. To show a live web page rather than copy a file, use create_web_link. Requires media.create.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Publicly fetchable http(s) URL. | |
| name | Yes | Display name for the asset. | |
| tags | No | Tags to set on the new asset, e.g. ["menu", "spring"]. | |
| folderId | No | Library folder to file it in (id from list_items kind media_folders); omit for the library root. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||