Skip to main content
Glama

playlist_delete

Remove a saved playlist file from the mpv media player to manage your media library and free up storage space.

Instructions

Delete a saved playlist file.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesPlaylist name to delete

Implementation Reference

  • The logic for the 'playlist_delete' tool, which deletes the playlist file using fs.unlinkSync.
    case "playlist_delete": {
      const p = playlistPath(args.name);
      if (!fs.existsSync(p)) return fail(`Playlist "${args.name}" not found`);
      fs.unlinkSync(p);
      return ok(`Deleted playlist "${args.name}"`);
    }
  • index.js:487-497 (registration)
    Registration of the 'playlist_delete' tool within the tool definitions list.
    {
      name: "playlist_delete",
      description: "Delete a saved playlist file.",
      inputSchema: {
        type: "object",
        properties: {
          name: { type: "string", description: "Playlist name to delete" },
        },
        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