Upload a video to post
upload_for_postMake an upload link for a finished video file the user has (MP4 or MOV, up to 1 GB), to post with schedule_post mediaId. Returns media_id, upload_url (one hour) and the curl command that sends the file. Does not post.
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": {
"bytes": "<bytes>"
},
"name": "upload_for_post"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | Yes | The file size in bytes, up to 1 GB. | |
| file_name | No | The file name, for the user. | |
| content_type | No | video/mp4 (default) or video/quicktime (MOV). | video/mp4 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| cost | No | ||
| error | No | ||
| state | No | ||
| status | No | ||
| dry_run | No | ||
| message | No | ||
| plan_id | No | ||
| style_id | No | ||
| video_id | No | ||
| available | No | ||
| import_id | No | ||
| output_id | No | ||
| studio_url | No | ||
| version_id | No |