cocos_add_tiled_layer
Attach a TiledMap layer to a node in Cocos Creator scenes for game development automation.
Instructions
Attach cc.TiledLayer (usually auto-created by TiledMap).
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": {
"scene_path": "<scene_path>",
"node_id": "<node_id>"
},
"name": "cocos_add_tiled_layer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| layer_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |