Preview playlist
preview_playlistBuilds a numbered playlist preview from search results, remembers excluded videos, and lets you review and approve the list before creating the playlist.
Instructions
Build (or rebuild) a numbered playlist preview from a search. Exclusions are remembered across calls for the same search_id. Show the returned markdown to the user and ask for approval or changes before create_playlist. Read-only, costs no quota.
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": {
"search_id": "<search_id>",
"title": "<title>"
},
"name": "preview_playlist"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| title | Yes | Playlist title (YouTube limit 150 chars). | |
| privacy | No | unlisted | |
| sort_by | No | score | |
| search_id | Yes | ||
| max_videos | No | ||
| description | No | Playlist description. | |
| like_weight | No | ||
| custom_order | No | Explicit final order (e.g. beginner → advanced). Listed videos come first in this order; the rest follow by sort_by. | |
| comment_weight | No | ||
| recency_weight | No | 0 = ignore upload date (default). 0.2–0.4 favours newer videos. Use when the user wants up-to-date content. | |
| max_per_channel | No | ||
| exclude_video_ids | No | Off-topic or user-rejected videos (sticky). | |
| popularity_weight | No | ||
| restore_video_ids | No | Undo earlier exclusions. |