get_token_catalog
Fetch design tokens from Tokens Studio sync source or local cache. Supports overriding repo, branch, file path, and filtering by token sets or path prefix.
Instructions
Fetch the canonical Tokens Studio token catalog from its sync source (GitHub, GitLab, Bitbucket, ADO, JSONBin, URL, Tokens Studio SaaS, Supernova) — or from the file's local cache when no remote sync. By default auto-discovers the storage config from the live file via the plugin; pass override to point at a different repo / branch / file path. Returns the parsed token tree, themes, and metadata. Credentials come from env vars (TOKENS_STUDIO__TOKEN); call get_token_storage_config first to see which secrets are configured.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| secret | No | ||
| override | No | ||
| setFilter | No | Only include these token sets (exact names). Big catalogs are 100s of KB — filter when you can. | |
| pathPrefix | No | Only include tokens whose path starts with this prefix, e.g. 'colors.brand'. |