Using templates in service data

Hi Everyone,
I’m trying to cast a link using:

media_extractor.play_media

and the following service data:

entity_id: media_player.lounge_room_tv
media_content_id: {{ states('input_text.media_link') }}
media_content_type: video

I have an input text helper for the media_content_id, however i keep getting the following error:

[547718334688] value should be a string for dictionary value @ data['media_content_id']

Put the template in double quotes

I tried that, it didn’t work
could you give me an example?

From that I got"

ERROR: "{{states('input_text.media_link')}}" is not a valid URL. Set --default-search "ytsearch" (or run youtube-dl "ytsearch:{{states('input_text.media_link')}}" ) to search YouTube

You can’t put templates in the developer tools / services tester.