solnk_create_media_upload
Initiates the upload process for a local media file by generating a presigned upload URL and media ID, enabling subsequent file upload and confirmation for social media publishing.
Instructions
Upload a LOCAL image/video file in 3 steps: (1) call this to get a presigned upload_url + media_id; (2) HTTP PUT the raw file bytes to that upload_url with header Content-Type equal to the same content_type (URL expires in 15 min); (3) call solnk_confirm_media_upload with the media_id. Then pass media_id to solnk_publish. Use this when you have a local file on disk; use solnk_create_media_from_url when you already have a public URL. Limits: max 500 MB; types png/jpeg/webp/gif, mp4/mov/webm.
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>",
"content_type": "<content_type>",
"size_bytes": "<size_bytes>"
},
"name": "solnk_create_media_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Original filename, e.g. cover.png | |
| content_type | Yes | ||
| size_bytes | Yes | File size in bytes (max 500 MB) |