playlist_load
Load a saved playlist by name and start playing it in the mpv media player. Use this tool to quickly access and play your stored music or video collections.
Instructions
Load a saved playlist by name and start playing it.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Playlist name (without .m3u) |
Implementation Reference
- index.js:628-635 (handler)The handler for 'playlist_load' which constructs the path, checks if it exists, ensures mpv is running, and loads the playlist using 'loadlist'.
case "playlist_load": { const p = playlistPath(args.name); if (!fs.existsSync(p)) return fail(`Playlist "${args.name}" not found. Use playlist_list to see available playlists.`); await ensureMpv(); await mpv("loadlist", [p, "replace"]); return ok(`Loaded playlist "${args.name}"`); } - index.js:420-429 (schema)The tool schema definition for 'playlist_load', specifying the input argument 'name'.
name: "playlist_load", description: "Load a saved playlist by name and start playing it.", inputSchema: { type: "object", properties: { name: { type: "string", description: "Playlist name (without .m3u)" }, }, required: ["name"], }, },