Clean, Deduplicate & Export M3U Playlist
clean_m3u_playlistDeduplicate channels, remove invalid/non-HTTP URLs, filter by group, sort, and export clean M3U8, JSON, or CSV playlist text. Read-only stateless transform, no login required.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"playlist": "<playlist>"
},
"name": "clean_m3u_playlist"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort_by | No | Sort order for cleaned channels. Defaults to "none". | |
| playlist | Yes | Raw #EXTM3U playlist text to clean (up to 500,000 characters). | |
| dedupe_by | No | Deduplication strategy. Defaults to "url". | |
| output_format | No | Export format. Defaults to "m3u". | |
| exclude_groups | No | Optional list of group-title values to remove (case-insensitive). | |
| include_groups | No | Optional list of group-title values to keep (case-insensitive). | |
| remove_invalid_urls | No | Drop entries whose URL is not a valid http:// or https:// URL. Defaults to true. |