Get my top tracks
get_my_top_tracksLists the signed-in user's most played Spotify tracks for a chosen time range, ranked by Spotify, with paging and playlist-ready URIs.
Instructions
List the signed-in user's most played tracks for a time range, ranked by Spotify.
Each uri can be passed to add_tracks_to_playlist.track_uris. Read-only.
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_my_top_tracks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of tracks (1-50). | |
| offset | No | Index of the first track; use `next_offset` to page. | |
| time_range | No | short_term: about the last 4 weeks; medium_term: about 6 months; long_term: about a year. | short_term |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| total | Yes | Total top tracks Spotify has for this time range. | |
| tracks | Yes | The user's most played tracks, rank 1 = most played. | |
| time_range | Yes | ||
| next_offset | Yes | Pass as `offset` to get the next page; null if there are no more. |