Start Playing Music from Voice Assistant

Ok, I’m currently playing around with Music Assistant and Assist in HA.
I can control the lights and ask for information, the only thing I can’t get it to do is start playing music.
I also posted the entities and it recognizes them but I don’t know how to start the music.
I saw this post but don’t know where to tell Google GenAI how it can do certain things
i mean somehow it knows how to control lights and plugs, is it just not implemented yet?

My current setup is


and some player entities and Spotify connected to the music assistant
these are my settings for the Google Generative AI Agent:

the text translated is:

I would like you to take on the role of Home Assistant's smart home manager.
I will provide information about a smart home along with a question that you will correct truthfully or answer in one sentence in everyday language using the information provided.
Always speak in German. confirm light changes with ok only.

Ok so im trying intent scripts tomorrow

okay so i implemented the intents like in this post
and it worked, sadly the answer took very long from google ai, but i will try with local ollama, which worked way faster at different intents before

Code copied from the post, but different formation
intent_script:
  play_track_on_media_player:
    name: play_track_on_media_player
    description: Plays any track (name or artist of song) on a given media player
    parameters:
      type: object
      properties:
        track:
          type: string
          description: The track to play
        entity_id:
          type: string
          description: The media_player entity_id retrieved from available devices. 
            It must start with the media_player domain, followed by dot character.
      required:
      - track
      - entity_id
    function:
    type: script
    sequence:
    - service: mass.play_media
      data:
        media_id: '{{track}}'
        media_type: track
      target:
        entity_id: '{{entity_id}}'
  play_playlist_on_media_player:
    name: play_playlist_on_media_player
    description: Plays any playlist on a given media player
    parameters:
      type: object
      properties:
        playlist:
          type: string
          description: The name of the playlist to play
        entity_id:
          type: string
          description: The media_player entity_id retrieved from available devices. 
            It must start with the media_player domain, followed by dot character.
      required:
      - playlist
      - entity_id
    function:
      type: script
      sequence:
      - service: mass.play_media
        data:
          media_id: '{{playlist}}'
          media_type: playlist
        target:
          entity_id: '{{entity_id}}'

but way better would be the music assistant integration would already provide the intents