Mint an upload slot (widget)
create_upload_slotUsed by the in-chat upload widget: returns a raw storage URL that only a client already holding the file's bytes can use. request_media_upload is the call that asks a user for a file.
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": {
"filename": "<filename>",
"mimeType": "<mimeType>"
},
"name": "create_upload_slot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | The file's exact byte count, from the file you are about to send (file.size). Recorded on the slot for reference only; it is not enforced. Optional: only a measured count is useful. | |
| filename | Yes | File name including its extension; the extension routes the transcode. | |
| mimeType | Yes | MIME type (image/* or video/*). | |
| workspace | No | Act in a team workspace: the owner's id from whoami's memberOfWorkspaces[].ownerId. Omit to act in your own workspace. |