cocos_add_tiled_map_asset
Import TiledMap assets (.tmx, .tsx, and PNG tilesets) into Cocos Creator projects to enable tile-based level creation for 2D/3D games.
Instructions
Import TiledMap assets (.tmx + .tsx tilesets + tileset PNGs).
Returns {tmx_uuid, tsx_files, textures, dir}. Use tmx_uuid with cocos_add_tiled_map().
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>",
"tmx_path": "<tmx_path>"
},
"name": "cocos_add_tiled_map_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| tmx_path | Yes | ||
| tsx_paths | No | ||
| texture_paths | No | ||
| rel_dir | No |