Skip to main content
Glama

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
NameRequiredDescriptionDefault
nameYesPlaylist name (without .m3u)

Implementation Reference

  • 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}"`);
    }
  • 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"],
      },
    },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/guodaxia9527/mcp-mpv-player'

If you have feedback or need assistance with the MCP directory API, please join our Discord server