import_media_from_url
Import an image, video, or audio file into a Sequencer workspace and return its mediaId. In ChatGPT Work, locate the uploaded file in the current session and pass its readable absolute path in file so ChatGPT can upload it. In other ChatGPT clients, pass the client-provided attachment in file. For hosted media, pass its reachable HTTP(S) URL in sourceUrl. For client-local files outside ChatGPT, use upload_media_base64 or the REST /v1/upload endpoint.
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": {
"workspaceId": "<workspaceId>"
},
"name": "import_media_from_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | A file attached to this ChatGPT conversation. In ChatGPT Work, use the readable absolute path of the upload in the current session. ChatGPT supplies the file object to Sequencer. | |
| fileName | No | Optional destination file name | |
| folderId | No | Optional destination folder ID | |
| mimeType | No | Optional MIME type | |
| sourceUrl | No | Reachable HTTP(S) URL. Omit when passing a ChatGPT attachment. | |
| workspaceId | Yes | The workspace ID | |
| presentation | No | Use timeline for internal production media without a standalone preview. | standalone |
| idempotencyKey | No | Stable upload key for retrying without duplicating media |