Upload files
upload_filesAtomically upload up to 10 files as base64 data (at most 8 MiB in total), public HTTPS URLs, or files the user attached in ChatGPT (up to 95 MiB each), or create single-use upload links. Returns stable /files/FILE_ID URLs and Markdown for Page bodies or file properties; uploading alone does not change any Page. An upload link takes one file of up to 95 MiB within 30 minutes, sent as the multipart field file (curl -F file=@PATH UPLOAD_URL) or from a browser at its uploadPageUrl. That size limit is fixed. A link reserves its file ID, and the file exists once it is sent.
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": "upload_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | ||
| workspaceId | Yes | ||
| attachedFiles | No | Files the user attached in ChatGPT, which ChatGPT fills in; each up to 95 MiB. Results list them after files. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||