Upload file
upload_fileUpload files to Clueso. Pick a mode by client and where the file lives:
files(ChatGPT only): the user's attachments, filled by ChatGPT; pass them instead of asking for a re-upload.file_name+content_base64(small files, max 3.5 MB decoded): the bytes go inline through this MCP call and mcp_upload_id returns at once. Use it when the curl/upload URL below is unreachable (sandbox egress allowlist, 403 from a proxy).file_namealone (default for agents/scripts: Claude Code, Cursor, Claude Desktop): returns an upload URL on Clueso's own domain (not S3; works where cloud storage is blocked) + a ready curl that PUTs one local file; you or the user run it.file_names(without request_hosted_upload): the same for many files, one token + URL each and ONE curl for all; run it from the folder the names are relative to (edit_animation upload_ids: the page site's root, e.g. 'index.html', 'js/scene.js').file_url: a public https URL; the server fetches it; mcp_upload_id returned at once.request_hosted_upload(only when a human should pick files in a browser, or no shell/PUT): one upload_token + upload_page link covering every file dropped; the user drops files and clicks Done; then check_uploads(upload_token). Call once for all files.
The mcp_upload_id (mup_…) goes to:
add_elements / update_elements: an image/video ON a clip (or a source swap) as
type_data.mcp_upload_id; an animation's image slot insidetype_data.parameter_values(update_elements, or add_elements placing a canvas kit).add_audio (project music track) · add_clips(kind='video') (video/audio → clip with transcription) · add_clips(kind='pptx') · add_article_media · analyze_audio · edit_animation (
files: [{path, upload_id}]orupload_idsnamed by path, so big files never go inline).
purpose: 'font' (any mode; display_name optional) adds it to this workspace's brand fonts once it arrives: the curl's reply (this reply for file_url/files, check_uploads for the hosted page) carries font: {name, family, format, converted_from} or font_error. TTF, OTF, WOFF, WOFF2 (WOFF/WOFF2 stored as TTF). Name = display_name, else the family without build dates/versions ("Cursor Mono 260406" → "Cursor Mono"); use it exactly in font_setting.font and pages. One face per name; an existing name is refused. Needs editor/admin and a plan with custom fonts.
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 |
|---|---|---|---|
| files | No | ChatGPT file attachments, one entry per file (filled by ChatGPT). | |
| purpose | No | 'font': add the file to this workspace's brand fonts once it arrives (see above). With request_hosted_upload, every file dropped on the page is one, reported by check_uploads. | |
| file_url | No | Public URL to fetch the file from | |
| file_name | No | File name with extension. Returns a Clueso upload URL + curl command that streams this single local file to us (single file). | |
| file_names | No | Hosted mode: the file names the user will upload, shown on the page. Without request_hosted_upload: upload these local files in one call (one token + URL each, and one curl for all), max 50. | |
| display_name | No | With purpose 'font' and one file (file_name, file_url, one files entry, or one file_names entry): the name to list the font under. Default: its family name without build dates or versions. | |
| content_base64 | No | With file_name: the file's bytes, base64 (max 3.5 MB decoded; bigger files: file_name alone or file_url). Stores the file now and returns mcp_upload_id; for when the upload URL can't be reached. | |
| request_hosted_upload | No | If true, returns a hosted upload page. Call once for all files — the page accepts multiple uploads under one token. |