OptionalhandlesTracks for mode: "handles" and auto: each a path, optionally ending in |subsong:N, or an object { path, subsong }. Paths the security policy refuses and entries of other types are skipped. Each path is checked on disk, so prefer selection, playlist or nowPlaying for tracks the host already lists.
Optionali18nfalse turns the label translation off.
OptionallocaleLocale for displayLabel: auto keeps the host's labels; a zh or en tag translates common labels.
OptionalmodeTracks to build the menu for: handles uses handles, playlist the active playlist, nowPlaying the playing track and selection the active playlist selection. Any other value, auto included, takes the first of handles, the playing track, the selection and the active playlist that is available. Given handles of which none is usable fail with INVALID_PARAMS in every mode, auto included, rather than falling back to other tracks; nowPlaying with nothing playing and selection with nothing selected fail with NO_ACTIVE_ITEM.
OptionalwithAdd command counts to submenus.
Parameters for
menu.getContextMenu. Get the context menu for the tracksmodeselects, as a tree.