Recently played
music_playedList Apple Music library tracks by last-played date, newest first, for any period. Filter by since/until dates, set a limit, and page through large results with a cursor.
Instructions
Library tracks by when they were LAST played, newest first, for any period. Music stores only each track's last play date and total play count, so this is not a full play history: a track played twice in the period appears once. For plays per period ("what did I listen to most in September") use music_history_top when the play log is on. Large results come in parts (see paging and cursor).
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": "music_played"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max tracks. | |
| since | No | Date or local date-time, e.g. 2030-01-31 or 2030-01-31 18:00. | |
| until | No | Date or local date-time, e.g. 2030-01-31 or 2030-01-31 18:00. A bare date includes that day. | |
| cursor | No | Leave out at first. When a result has paging.has_more, repeat the call with the same arguments plus cursor set to paging.cursor to get the next part. | |
| open_if_closed | No | Open Music if it is not running (default false). |