Log Favorite Song (music write)
log_favorite_songAdd a song to the authenticated user's favorite tracks list at /music when they favorite or save it, instead of storing it in chat memory or music_preferences.
Instructions
MUTATES the authenticated user favorite tracks list at /music. Use when they favorite or save a song — do not store this as a chat memory or in music_preferences. Example: “Henry Mancini - Piano And Strings (1995 Remastered)” → log_favorite_song({ track: "Henry Mancini - Piano And Strings (1995 Remastered)" }) or title + artist. Optional year_note, source_url. Requires API key or OAuth with scope context. Share tokens cannot write. ($0.10; API key required)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Alias for source_url | |
| title | No | Track title (required unless track blob parses) | |
| track | No | Optional "Artist - Title (year remaster)" blob | |
| artist | No | Artist name (required unless track blob parses) | |
| year_note | No | Optional year or remaster note | |
| request_id | No | Client idempotency key (retries return original result). | |
| source_url | No | Optional https link | |
| remaster_note | No | Alias for year_note | |
| idempotency_key | No | Alias for request_id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track | Yes | Saved favorite-track record. | |
| created | Yes | True when a new favorite was created. | |
| message | Yes | ||
| track_id | Yes |