list_playlist_items
Retrieves the videos in a YouTube playlist, returning each item's playlist item ID and video ID plus pagination tokens so you can review contents or prepare items for removal.
Instructions
List the videos in a playlist. Each item includes playlistItemId (needed for remove_playlist_item) and videoId. Quota cost: 1 unit per call (50 items per page). Returns nextPageToken when more pages exist.
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>"
},
"name": "list_playlist_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pageToken | No | nextPageToken from a previous call. | |
| playlistId | Yes | Playlist ID (or a URL containing ?list=...). |