Add video to playlist
add_to_playlistAdd a YouTube video to a playlist at a chosen position, with duplicate prevention and an approval preview before the change is applied.
Instructions
Add a video to a playlist. Refuses duplicates (playlist_duplicate). Two-step approval.
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": {
"playlist_id": "<playlist_id>",
"video_id": "<video_id>"
},
"name": "add_to_playlist"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| position | No | 0-based position; only for manually sorted playlists. Default: end. | |
| video_id | Yes | YouTube video ID (11 characters) or any youtube.com / youtu.be URL. | |
| playlist_id | Yes | Playlist ID (or a URL containing list=...). | |
| 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 | |||