cocos_compress_uuid
Convert 36-character UUIDs to Cocos Creator's 23-character format for referencing custom TypeScript components in scene/prefab JSON files.
Instructions
Compress a 36-char UUID to Cocos Creator's 23-char short form.
Required when referencing a custom TS script class as a component
__type__ in a scene/prefab JSON. Example:
'5372d6f5-721e-43f6-b004-d30da1c8a9a0' -> '5372db1ch5D9rAE0w2hyKmg'
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": {
"uuid": "<uuid>"
},
"name": "cocos_compress_uuid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |