Upload media
mediaUploadUpload a file to the workspace media library, either from a public URL (images, GIFs and short videos; videos up to 100 MB) or from base64 data (small files). Returns the new file's id, public url (usable as post media), storage path, type and size.
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": "mediaUpload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public URL of an image, GIF or short video (videos up to 100 MB) to import; exclusive with base64 | |
| name | No | Display name in the media library | |
| base64 | No | Raw base64 file data; exclusive with url | |
| caption | No | Caption stored with the file | |
| fileName | No | File name, e.g. my-image.png; required with base64 | |
| folderId | No | Media library folder id; the root folder when omitted | |
| mimeType | No | MIME type of the base64 data, e.g. image/png; required with base64 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| output | No |