Skip to content

publish_video

ConfirmAlways asks first

Same action in the terminal: capturemann publish

Publish a recording to YouTube.

  • Tier: Confirm, locked: always asks on screen; the setting cannot be changed.
  • Read-only: no
  • CLI: capturemann publish
  • Spec: PUB-2
NameTypeRequiredDefaultDescription
capture_idstringyesCapture id, e.g. from capture_screenshot or list_library. (min length 1)
platformyoutubeyesOnly youtube is built; tiktok and facebook fail with not_implemented.
account_idstringnoFrom list_publish_accounts; the default account when absent.
titlestringnoRequired, at most 100 characters, no < or >. (max length 100)
descriptionstringnoAt most 5,000 bytes, no < or >.
tagsarray of stringnoAt most 500 characters in total.
privacyprivate | unlisted | publicnoThe account's default (never public) when absent.
made_for_kidsbooleannoRequired by YouTube; there is no default, ask the user.
thumbnailstringnoAbsolute path of a JPG or PNG up to 2 MB.
export_presetstringnoExport the recording with this preset first (for example youtube-1080p); the newest existing export otherwise.
export_pathstringnoAbsolute path of an export of this capture to send instead of the newest one; not together with export_preset.
captionsbooleannofalseAlso upload the recording's captions as an SRT track (needs captions or a transcript).
categorystringnoYouTube category id; 28 (Science & Technology) when absent.
playlist_idstringnoAdd the video to this playlist (a playlist id). The confirmation dialog shows the id, not the title.
metadataobjectnoThe same fields as above in one object (title, description, tags, privacy, made_for_kids, thumbnail, captions, category, playlist_id); top-level fields win.
request_idstringnoIdempotency key; a repeat within 24 h returns the first result. (min length 1, max length 256)

Returns: job_id, capture_id, platform, account_id, account, title, privacy, made_for_kids, file, export_preset, export_job_id, captions, state.

Errors: invalid_input, network, user_declined, confirmation_timeout, not_found (plus the common errors above).

JSON
{"name": "publish_video", "arguments": {"capture_id": "rec_06GYEVMCKZSRHR46", "platform": "youtube", "title": "Kubernetes probes in 5 minutes", "privacy": "unlisted", "made_for_kids": false}}