Add a music button
add_musicAdd a song or album as a button with its cover art. Pass one Spotify, Apple Music, Deezer or YouTube link: stomp.to reads the title, artist and cover, and finds the same release on Spotify, Apple Music and Deezer when the names match. Visitors tap it and pick their streaming app. Add other services (YouTube Music, TIDAL, Amazon Music, SoundCloud, Bandcamp…) afterwards with update_block links.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "add_music"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | A Spotify, Apple Music, Deezer or YouTube link to a song or album. | |
| endsAt | No | When it stops showing, ISO 8601 with a time zone, e.g. 2026-12-01T18:00:00-08:00. Ask the user's time zone if unsure. null clears it. | |
| position | No | Where to add it: "top" (default) or "bottom". | top |
| startsAt | No | When it starts showing, ISO 8601 with a time zone, e.g. 2026-12-01T18:00:00-08:00. Ask the user's time zone if unsure. null clears it. | |
| spotlight | No | Put it in the spotlight: shown first on the page, highlighted. Only one block has it; this takes it from any other. |