Upload file
upload_fileimport a user-provided file into OTOY Studio storage server-side. in ChatGPT, pass the attached/pasted file as the "file" parameter. other MCP clients pass a public https url as "url". returns a download_url usable in generation tools (and a permanent file_id for authenticated sessions). no manual PUT needed - prefer this over request_upload_url when the file is already reachable by url.
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": "upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | direct https url of the file (for non-chatgpt hosts) | |
| file | No | chatgpt file object (populated automatically when a user attaches a file) | |
| filename | No | override filename (used for type inference) | |
| content_type | No | override mime type (e.g. image/png) |