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
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
capture_id | string | yes | Capture id, e.g. from capture_screenshot or list_library. (min length 1) | |
platform | youtube | yes | Only youtube is built; tiktok and facebook fail with not_implemented. | |
account_id | string | no | From list_publish_accounts; the default account when absent. | |
title | string | no | Required, at most 100 characters, no < or >. (max length 100) | |
description | string | no | At most 5,000 bytes, no < or >. | |
tags | array of string | no | At most 500 characters in total. | |
privacy | private | unlisted | public | no | The account's default (never public) when absent. | |
made_for_kids | boolean | no | Required by YouTube; there is no default, ask the user. | |
thumbnail | string | no | Absolute path of a JPG or PNG up to 2 MB. | |
export_preset | string | no | Export the recording with this preset first (for example youtube-1080p); the newest existing export otherwise. | |
export_path | string | no | Absolute path of an export of this capture to send instead of the newest one; not together with export_preset. | |
captions | boolean | no | false | Also upload the recording's captions as an SRT track (needs captions or a transcript). |
category | string | no | YouTube category id; 28 (Science & Technology) when absent. | |
playlist_id | string | no | Add the video to this playlist (a playlist id). The confirmation dialog shows the id, not the title. | |
metadata | object | no | The same fields as above in one object (title, description, tags, privacy, made_for_kids, thumbnail, captions, category, playlist_id); top-level fields win. | |
request_id | string | no | Idempotency 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}}