Upload conversation file
upload_media_fileImports an image or video attached to or generated in a ChatGPT conversation into the media library, using the file reference ChatGPT supplies. Returns a media ID for use in posts.
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": {
"file": "<file>"
},
"name": "upload_media_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The conversation file. ChatGPT supplies a temporary download link. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Stable machine-readable error code. Present only for an error result. | |
| data | No | A workspace media asset with temporary signed URLs. | |
| errors | No | Validation messages keyed by input field. | |
| issues | No | Structured validation issues. | |
| message | No | Safe error summary. Present only for an error result. | |
| retry_after | No | Seconds to wait before retrying a rate-limited request. |