playlist_create
Create a new playlist by specifying a name and adding file paths or URLs for media playback in mpv player.
Instructions
Create a new playlist with a list of file paths.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Playlist name | |
| files | Yes | Array of absolute file paths or URLs |
Implementation Reference
- index.js:637-644 (handler)The handler implementation for the playlist_create tool.
case "playlist_create": { if (!args.files || args.files.length === 0) return fail("files array cannot be empty"); writePlaylist(args.name, args.files); return ok( `Created playlist "${args.name}" with ${args.files.length} item(s)\nSaved to: ${playlistPath(args.name)}` ); } - index.js:431-444 (registration)The tool definition and registration for playlist_create.
name: "playlist_create", description: "Create a new playlist with a list of file paths.", inputSchema: { type: "object", properties: { name: { type: "string", description: "Playlist name" }, files: { type: "array", items: { type: "string" }, description: "Array of absolute file paths or URLs", }, }, required: ["name", "files"], },