Forward meta-data to triggered build

Is there a way to forward metadata to a pipeline triggered via the trigger step?

- block: foo
    - { text: foo, key: foo }

- wait

- trigger: bar
      foo: # ? no way to pass $(buildkite-agent meta-data get foo)

I know this can be done using a dynamically generated pipeline, but it seems unfortunate to a require switching from yml to sh just for this.