Create Post From Video
create_post_from_videoCreate posts from a video the user provides. Pass EXACTLY ONE of mediaId (from finalize_media_upload or import_media_from_url — preferred for files you uploaded) or videoUrl (a public link). The video becomes the post's media and AI writes captions based on the topic. Runs asynchronously — the user is notified when posts are ready. Posts are always saved as DRAFTS: nothing is published or scheduled. To go live, call schedule_post or publish_post once the user confirms. Output: { success, taskId, groupId, count, finalStatus: 'draft', videoUrl, posts: [{ id, status: 'generating', index }] } — poll get_task_status with taskId.
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": {
"topic": "<topic>"
},
"name": "create_post_from_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of caption variants/posts to generate (default 1; only more when the user asks for more) | |
| topic | Yes | What the video/post is about (required for the caption) | |
| mediaId | No | mediaId of a video stored with finalize_media_upload or import_media_from_url. Omit when you pass videoUrl. | |
| videoUrl | No | Public HTTP/HTTPS URL of the video. Omit when you pass mediaId. |