get_user_recent_tracks
Retrieve a user's recent listening history, most recent first. Identify currently playing tracks and filter by time range or pagination to analyze listening habits.
Instructions
Get a user's listening history, most recent first.
This is the tool for "what have I been listening to". A currently playing track appears first with a nowplaying flag and no play date.
Args: user: Whose history to read. Defaults to the authenticated account. limit: Results per page (maximum 200). page: Which page of results to fetch. from_timestamp: Only plays at or after this Unix timestamp. to_timestamp: Only plays at or before this Unix timestamp. extended: Also return artist images and whether you loved each track.
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_user_recent_tracks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| user | No | ||
| limit | No | ||
| extended | No | ||
| to_timestamp | No | ||
| from_timestamp | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |