Set video visibility
set_visibilityChange a YouTube video's visibility to private, unlisted, or public; preview the change and require approval before applying it.
Instructions
Change a video's visibility to private, unlisted or public, then verify the actual result. Always two-step: returns a preview and confirmation_token; call again with the token after the user approves. PUBLIC also needs confirm_public=true, and the user must additionally click 'Allow Public' in a native macOS dialog on their Mac. Changing private to unlisted is treated the same way when the video is in one of the channel's PUBLIC playlists (anyone viewing the playlist could then watch it); the preview lists those playlists.
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": {
"video_id": "<video_id>",
"visibility": "<visibility>"
},
"name": "set_visibility"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| video_id | Yes | YouTube video ID (11 characters) or any youtube.com / youtu.be URL. | |
| visibility | Yes | 'private', 'unlisted' or 'public'. | |
| confirm_public | No | Required (true) to make a video public, or when the preview warns that it becomes visible through public playlists; only with explicit user approval. | |
| confirmation_token | No | Token from the preview. Only pass it after the user has explicitly approved the preview. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||