Play from YouTube
mpv_youtubePlay YouTube videos in mpv by providing a search query or a direct URL. Optionally queue multiple results or append to the current playlist.
Instructions
Search YouTube and stream the result through mpv. Accepts a search query or a direct YouTube URL.
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": {
"query": "<query>"
},
"name": "mpv_youtube"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | YouTube search term or URL | |
| results | No | Number of search results to queue (default 1, max 10) | |
| mode | No | "replace" clears playlist (default), "append" adds to current playlist | replace |