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
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Playlist name to delete |
Implementation Reference
- index.js:698-703 (handler)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"], }, },