Add Video to Playlist
youtube_add_video_to_playlistAdd a video to a YouTube playlist by providing playlist and video IDs, with an optional insertion position.
Instructions
Add a YouTube video to one of your playlists, with optional position.
Args
playlistId(string, required): The target playlist ID.videoId(string, required): The video ID to add.position(integer ≥ 0, optional): Zero-based position to insert at. If omitted, appends to end.
Returns Confirmation Markdown + structured new playlist item resource:
{
"playlistItemId": "...",
"playlistId": "PL...",
"videoId": "...",
"position": 0
}Examples
youtube_add_video_to_playlist({ playlistId: "PL...", videoId: "dQw4w9WgXcQ" })Add at position 0:
youtube_add_video_to_playlist({ playlistId: "PL...", videoId: "...", position: 0 })
Errors
404 → playlist or video not found.
403 → not your playlist or quota exceeded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| playlistId | Yes | Playlist ID to add the video to. | |
| videoId | Yes | Video ID to add to the playlist. | |
| position | No | Zero-based insertion position. Omit to append at the end. |