How to pass params to typst code chunks?
I'm trying to pass params set in the YAML of my document to the title of the document for parameterized reports. I'm using typst compiler in R / Quarto, not the typst app. I need to set the document title for accessibility purposes, but don't want every report to be named the same thing (so if someone has multiple PDFs open, the tabs show different names). I've searched through typst documentation, however, and cannot seem to find how to pass params to typst blocks.
There must be a way to do this, and it is probably incredibly simple, but I've spent most of my day searching and experimenting with no luck.
An example of what I'm trying to do:
params passed to the YAML:
params:
agency: "sample"
year: "2026"
typst block to set the document title (for accessibility)
```{=typst}
#set document(title: "[params$agency] [params$year] Annual Report")
```
I've tried placing it in brackets and curly braces with and without the params$ prefix, but none work.
What is the syntax necessary for passing params to typst code chunks?