Bring in a file
import_mediaBrings a picture, clip or song in from a link or a local file, and returns its asset_id. Cost: Free.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "import_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | A public https link to a picture, clip or song. | |
| file | No | Or a file on this computer (two calls). | |
| name | No | A file name to keep it under. | |
| etags | No | Each part's ETag, in order. | |
| sha256 | No | The file's sha256. | |
| video_id | No | Video; the open one if left out. | |
| staging_key | No | After sending: its staging_key. | |
| operation_id | No | Same id retries run once. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| cost | No | ||
| error | No | ||
| state | No | ||
| status | No | ||
| dry_run | No | ||
| message | No | ||
| plan_id | No | ||
| style_id | No | ||
| video_id | No | ||
| available | No | ||
| import_id | No | ||
| output_id | No | ||
| studio_url | No | ||
| version_id | No |