cocos_get_ui_tokens
Retrieve the active UI theme for a Cocos Creator project, returning fully resolved theme tokens including fallback defaults when no theme is set.
Instructions
Return the project's active UI theme (fully resolved).
Always returns a complete theme — un-themed projects get the
dark_game default with source='fallback'. Source is
'registry' when the project has explicitly pinned a theme.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_path": "<project_path>"
},
"name": "cocos_get_ui_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes |