Import Asset from URL
sirv_import_asset_from_urlDownload a file from a public URL and add it to the Studio library as a new asset, so AI results or outside images stay available for reuse.
Instructions
Download a file from a public URL and add it to the Studio library as a new asset.
Use it to keep an AI result or an outside image in the library. Do not use it to put the file in the connected Sirv account: use sirv_cdn_upload_from_url.
Inputs: url and filename (with its extension, such as boot.jpg) are required. fileSize in bytes is optional, and orgId picks another workspace.
A source that fails returns an error code: IMPORT_URL_BLOCKED for a private, non-HTTP or credentialled URL, IMPORT_UNSUPPORTED_TYPE for a file that is not an image or media, and IMPORT_SOURCE_UNAVAILABLE when the source answers with an error. Returns the new asset with its id and URL.
Credits: free.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>",
"filename": "<filename>"
},
"name": "sirv_import_asset_from_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public HTTP or HTTPS URL of the file to import | |
| orgId | No | Workspace id from sirv_list_organizations. Default: the workspace you signed in to | |
| fileSize | No | File size in bytes, when you know it | |
| filename | Yes | File name for the new asset, with its extension, such as boot.jpg |