youtube_clean_playlist_apply
Removes duplicate, unavailable, or watched videos from a YouTube playlist using a verified preview plan token, and cancels the change if the playlist was modified since preview.
Instructions
Remove exactly the videos from a matching youtube_clean_playlist_preview. Requires the same arguments and its plan_token; fails with PLAN_CHANGED and removes nothing if the playlist changed since the preview. Special playlists such as Watch Later cannot be modified.
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>",
"remove": "<remove>",
"plan_token": "<plan_token>"
},
"name": "youtube_clean_playlist_apply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| remove | Yes | What to remove: later copies of duplicate videos, unavailable (deleted/private) videos, and/or watched videos. | |
| plan_token | Yes | ||
| playlist_id | Yes | Playlist ID or any YouTube URL with a list= parameter. | |
| watched_threshold | No | Percent watched that counts as watched (default 90). |