Skip to main content
Glama
eval.md474 B
# Evaluate ## `eval` Evaluates a string as Typst code. This function should only be used as a last resort. # Example ```example #eval("1 + 1") \ #eval("(1, 2, 3, 4)").len() \ #eval("*Markup!*", mode: "markup") \ ``` ## Parameters ### source *(required)* A string of Typst code to evaluate. ### mode The [syntactical mode]($reference/syntax/#modes) in which the string is parsed. ### scope A scope of definitions that are made available. ## Returns - any

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/FujishigeTemma/typst-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server