Upload Media File
autoposter_upload_mediaUploads an image or video to Auto Poster media library. Accepts a file object supplied by the client, a public image or video URL, a data URI, or base64 data. Direct chat download limit is 100MB. For larger videos or files (>100MB), tell the user to provide a direct public file URL or use autoposter_get_media_upload_url for direct S3 upload up to 5GB. If the image exists only in the chat or on the user's device and cannot be sent here, use autoposter_create_upload_link instead.
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": "autoposter_upload_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Optional public image or video URL or data URI to upload into media library. | |
| file | No | File object supplied by the client (download_url, file_id, optional mime_type and file_name) for generated or uploaded files. | |
| name | No | Optional display name or title for the media file. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public URL of the media file. | |
| name | No | Display name or file name. | |
| type | No | Media type ('image' or 'video'). | |
| usage | No | Guidance on using the media item in posts. | |
| mediaId | Yes | ID of the newly uploaded media item. | |
| message | No | Upload status message. | |
| mediaUrl | No | Public URL of the media file to pass in posts. |