Skip to main content
Glama
module.md809 B
# Module A collection of variables and functions that are commonly related to a single theme. A module can - be built-in - stem from a [file import]($scripting/#modules) - stem from a [package import]($scripting/#packages) (and thus indirectly its entrypoint file) - result from a call to the [plugin]($plugin) function You can access definitions from the module using [field access notation]($scripting/#fields) and interact with it using the [import and include syntaxes]($scripting/#modules). Alternatively, it is possible to convert a module to a dictionary, and therefore access its contents dynamically, using the [dictionary constructor]($dictionary/#constructor). # Example ```example <<< #import "utils.typ" <<< #utils.add(2, 5) <<< #import utils: sub <<< #sub(1, 4) >>> #7 >>> >>> #(-3) ```

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