yoto_card_plan
Preview Yoto card edits as a readable diff and plan_id without writing anything, so users can review chapter, track, and icon changes before applying.
Instructions
Plan an edit to a card without writing anything. Returns a plan_id, a readable diff and warnings.
card is the card's title, or "new" (with title) to plan a new card. Show the user the diff
before applying. Plans expire after 30 minutes.
Ops (address chapters by key, or by exact chapter title):
insert_chapter {key, title, audio: , icon?, before|after: chapter, or position: start|end|N} or {key, title, tracks: [{key?, title, audio, icon?}], ...}
remove_chapter {chapter}
move_chapter {chapter, before|after|position}
retitle {title} (the card) or {chapter, track?, title}
set_track_audio {chapter, track?, audio}
set_icon {chapter, track?, icon: "yoto:#…"} (no track: the chapter and all its tracks)
set_events {chapter, track?, events: {onEnd|onLhb|onRhb: {cmd: goto|stop, params?} | null}}
set_config {config: {resumeTimeout, autoadvance, disableTrackNav, …: value | null}, playbackType?}
set_cover {url}
set_metadata {metadata: {description, author, …}}
replace_refs {map: {"yoto:#old": "yoto:#new" | media}} (after yoto_media_import)
renumber_labels {} (runs automatically after structural ops)
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": "<card>",
"ops": "<ops>"
},
"name": "yoto_card_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | ||
| card | Yes | ||
| title | No | ||
| account | No | ||
| renumber | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||