Edit draft
edit_draftApply multiple track-list edits atomically—add, remove, reorder, filter, or update metadata—and undo changes, using expectedRevision to prevent edits to unseen drafts.
Instructions
Apply one or more edits atomically: remove_tracks (by id from get_draft view=tracks), add_track (URI, URL or "Artist - Title"), exclude_artist, set_artist_track_count, set_artist_source (fix a wrong artist match), move, shuffle, reorder, set_meta (name/description/public), filter (explicit/versions), undo. Pass expectedRevision from the last get_draft so edits never apply to a list the user has not seen. While the draft is still building only exclude_artist, set_artist_track_count, set_artist_source, filter and set_meta are allowed.
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": {
"draftId": "<draftId>",
"ops": "<ops>"
},
"name": "edit_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | ||
| draftId | Yes | ||
| expectedRevision | No |