create_daily_playlist
Builds one daily playlist across logged-in music platforms from recommendations and favorites, skips recently used songs, and searches each platform for matching tracks.
Instructions
生成「今日歌单」:全平台候选池 -> 同一份歌单,多平台各建一份。
候选池 = 所有平台的「今日推荐」+「全部收藏」去重(推荐优先), 自动避开最近 avoid_days 天推过的歌;然后在每一个已登录的平台各建一份同名歌单, 每首歌在目标平台现场搜索,找不到就跳过(记在该平台的 failed 里)。
services: 平台列表,如 ["qq_music","netease","kugou"];留空 = 全部平台。 service: 单平台写法(等价于 services=[xxx])。 count: 要建多少首,随便填(默认 40,想要 100 首就传 100;池子不够时有多少给多少)。 include: 点名想听的歌,逗号/分号/换行分隔,写成「歌名 - 歌手」,例如 "晴天 - 周杰伦, 海阔天空 - Beyond"。点名的歌一定排在最前面。 avoid_days: 避开最近几天推过的歌(默认 7;给 0 = 完全不看去重池)。 playlist_name: 指定歌单名(推荐:先调 suggest_playlist_names 挑一个, 或你自己起 —— 名字是给用户看的,你起得比内置规则好)。 留空则自动 "-<主题>",总长 ≤20 字(主题 ≤11 字)。 prompt: 用户的原始请求。话里带心情/场景(「今天心情不好」)、歌手名或年代 (「邓紫棋2020年以前的歌」)就贴着它起名;什么都没说就随机抽素材 (天气/时段/主题池),不做任何"雨天一定叫雨天窗边"的硬绑定。 with_weather: 天气是否参与命名(默认 true;可选项,取不到不影响生成)。 天气默认按出口 IP 定位,在服务器上会是机房所在地;想让天气贴合本城, 让用户设环境变量 MUSIC_WEATHER_CITY=城市名。 返回 {"ok","playlist_name","theme","name_source","name_budget","recent_names", "avoid_days","count","weather","weather_hint","pool_size","pool_sources", "results":[{platform,...}]}。 name_source 说明名字怎么来的(explicit/mood/artist/year/artist+year/random)。 某个平台没登录会在 results 里标 skipped=not_logged_in,不影响其他平台。 若返回里 weather_hint 非空,把它转述给用户(提醒设置 MUSIC_WEATHER_CITY)。
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_daily_playlist"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| count | No | ||
| prompt | No | ||
| include | No | ||
| service | No | ||
| services | No | ||
| avoid_days | No | ||
| with_weather | No | ||
| playlist_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |