addTracksToPlaylist
Add tracks to a Spotify playlist using track IDs and specify the insertion position. Manage playlists efficiently with the Spotify MCP Server.
Instructions
Add tracks to a Spotify playlist
Input Schema
Name | Required | Description | Default |
---|---|---|---|
playlistId | Yes | The Spotify ID of the playlist | |
position | No | Position to insert the tracks (0-based index) | |
trackIds | Yes | Array of Spotify track IDs to add |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"playlistId": {
"description": "The Spotify ID of the playlist",
"type": "string"
},
"position": {
"description": "Position to insert the tracks (0-based index)",
"minimum": 0,
"type": "number"
},
"trackIds": {
"description": "Array of Spotify track IDs to add",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"playlistId",
"trackIds"
],
"type": "object"
}