Add tracks to a card
add_tracksAdd one or more audio tracks to an existing Yoto card in order; uploads and transcodes audio, skips existing tracks, and reports failures.
Instructions
Add one or more tracks to an existing card, in the order given. Audio is downloaded or read, checked to really be audio, uploaded and transcoded by Yoto in the background, then all tracks are written to the card in one change (so concurrent adds cannot overwrite each other). Tracks that fail are reported and the rest are still added. Audio already on the card is skipped and reported, unless allow_duplicates is true. Use stream_url instead of url for live or changing audio that should stream each time.
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": {
"card_id": "<card_id>",
"tracks": "<tracks>"
},
"name": "add_tracks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tracks | Yes | ||
| card_id | Yes | The card ID from list_cards (5 characters, e.g. "a1B2c"). | |
| confirm | No | Only when the tracks include YouTube links: set true after the parent confirmed in this conversation that the family has the right to use that audio. | |
| position | No | Insert before this track number. Default: at the end. | |
| wait_seconds | No | Seconds to wait for the job before returning (default 25). Long uploads keep running after this; follow up with get_job. | |
| allow_duplicates | No | Audio already on the card is normally skipped and reported. Set true only when the parent wants the same audio twice. | |
| normalize_volume | No | Ask Yoto to even out loudness while transcoding. |