get_recently_played
Retrieve your recently played Spotify tracks, most recent first. Use optional Unix timestamps to filter by time window.
Instructions
The user's last-played tracks, most recent first. Spotify caps this at the last 50 plays — it is NOT a full listening history (use the local analytics tools for that, once built). after_ms/before_ms are Unix ms timestamps and mutually exclusive.
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 | ||
| after_ms | No | ||
| before_ms | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| href | No | ||
| next | No | ||
| items | No | ||
| limit | No | ||
| total | No | ||
| cursors | No |