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.
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). |