Add a video to a playlist
add_to_playlistAdd a video to a YouTube playlist by playlist ID or exact title, optionally at a specific position or by creating the playlist if missing.
Instructions
Add a video to a playlist by playlist id or exact title. Optionally at a position (0 = first).
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>",
"playlist": "<playlist>"
},
"name": "add_to_playlist"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | No | Which connected channel: channel ID (UC...), @handle or name. Omit to use the default channel. | |
| playlist | Yes | Playlist id (PL...) or exact title. | |
| position | No | ||
| video_id | Yes | ||
| create_if_missing | No | Create a private playlist with this title if none exists. |