Get my recently played tracks
get_recently_playedList the signed-in user's recently played Spotify tracks to review listening history or collect track URIs for playlist additions.
Instructions
List the signed-in user's recently played tracks (Spotify keeps only the last ~50 plays).
Each uri can be passed to add_tracks_to_playlist.track_uris. Read-only.
For "what does the user listen to over the last weeks", prefer get_my_top_tracks.
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": "get_recently_played"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of plays to return (1-50). | |
| before | No | Unix ms cursor: the `before` value from a previous call, to get older plays. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| before | Yes | Pass as `before` to get older plays; null if Spotify reports no more. | |
| tracks | Yes | Most recent first. A track can appear more than once. |