previous-track
Skip to the previous track in Spotify playback using natural language commands through Claude Desktop integration.
Instructions
Skip to the previous track
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Input Schema (JSON Schema)
{
"properties": {},
"type": "object"
}
Implementation Reference
- index.ts:1191-1202 (handler)Handler for the 'previous-track' tool. It calls the Spotify API endpoint /me/player/previous with POST to skip to the previous track and returns a success message.if (name === "previous-track") { await spotifyApiRequest("/me/player/previous", "POST"); return { content: [ { type: "text", text: "Skipped to previous track.", }, ], }; }
- index.ts:704-711 (registration)Registration of the 'previous-track' tool in the MCP server's tool list, including name, description, and input schema (no parameters required).{ name: "previous-track", description: "Skip to the previous track", inputSchema: { type: "object", properties: {}, }, },
- index.ts:707-710 (schema)Input schema for 'previous-track' tool: an empty object since no parameters are needed.inputSchema: { type: "object", properties: {}, },