Add a video to a playlist
youtube_add_to_playlistAdds a YouTube video to a chosen playlist by playlist ID and video ID, with optional insert position; omit position to append at the end.
Instructions
Inserts a video into a playlist immediately.
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": {
"playlistId": "<playlistId>",
"videoId": "<videoId>"
},
"name": "youtube_add_to_playlist"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| videoId | Yes | Video id: the 11-character code after "watch?v=" or "youtu.be/", not the full URL. | |
| position | No | Zero-based insert position. Omit to append to the end. | |
| playlistId | Yes | Playlist id — the value after "list=" in a playlist URL, usually beginning "PL", "UU", or "LL". |