cocos_set_node_scale
Adjust the scale of a node in Cocos Creator scenes by specifying X, Y, and Z scaling factors to resize game objects programmatically.
Instructions
Set a node's local scale.
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>",
"sx": "<sx>",
"sy": "<sy>"
},
"name": "cocos_set_node_scale"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene_path | Yes | ||
| node_id | Yes | ||
| sx | Yes | ||
| sy | Yes | ||
| sz | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |