upload_media
Upload images or videos to Ayrshare's media library using URLs or base64 data for social media content management. Files are stored for 90 days with a 30MB limit.
Instructions
Upload an image or video to Ayrshare's media library. Accepts either a public URL (which will be downloaded and uploaded) or base64-encoded data. Files are stored for 90 days. Max 30MB. Requires Premium plan.
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_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileUrl | No | Public URL of the file to upload. The server will download and re-upload it. One of fileUrl or base64Data is required. | |
| base64Data | No | Base64-encoded file data with data URI prefix (e.g. 'data:image/png;base64,...'). One of fileUrl or base64Data is required. | |
| fileName | No | Name for the uploaded file | |
| description | No | File description | |
| profileKey | No | Profile Key to operate on a specific user profile |