Dynamic file name or fetch value for select field?

Is it possible to use a dynamic file name for a select field’s url or fetch? So either:

      modules:
        label: Modules
        type: select
        options: api
        api:
          url: "{{ site.url }}/{ page.uid }}.json"
          fetch: "seminare"

or

      modules:
        label: Modules
        type: select
        options: api
        api:
          url: "{{ site.url }}/seminare.json"
          fetch: page.uid

Neither one doesn’t seem to work for me.

According to the docs, yes: https://getkirby.com/docs/reference/panel/fields/select#options-via-api

(see end of chapter)

Yeah I read that. However it seems that {{ page.uid }} isn’t valid to the be used in the url field?

Hm, yes, can’t get it to work, either.

Any suggestions on this? A solution or a workaround would be great!

Update: The $page object is not available in the OptionsApi class. Is there any way to do this?

Thanks