import_asset
Make an asset from a file on the web: Rendermate downloads it from the URL, up to 5 GB, and records it under the name. Use it instead of upload_asset when the file has a URL. It answers with a running import; call get_import until its status is succeeded (with the asset) or failed (with why). A taken name is refused unless overwrite is set. A document uses the asset as asset://.
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": {
"name": "<name>",
"url": "<url>"
},
"name": "import_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | An http(s) URL on the public internet that Rendermate downloads the file from, up to 5 GB. | |
| name | Yes | The asset's path in the workspace, such as `launch/intro.mp4`. | |
| overwrite | No | Replace an asset already at this name. Without it, a name that's taken is refused with `asset.name_taken`, and so is one taken while the file downloads. | |
| project_id | No | The project it belongs to; the workspace's default project when absent. | |
| content_type | No | Its content type; the server's, else guessed from the name's extension, when absent. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | `imp_…`. | |
| url | Yes | Where it downloads the file from. | |
| name | Yes | The asset it makes. | |
| asset | No | The asset, once it has succeeded. | |
| error | No | Why it failed. | |
| status | Yes | `running`, `succeeded` or `failed`. | |
| created_at | Yes | RFC 3339. | |
| updated_at | Yes | RFC 3339: when its status last changed. |