cavalry_set_attributes
Update layer properties in Cavalry by setting attribute values such as position, color, rotation, and opacity using a key-value map of attribute paths.
Instructions
Sets one or more attribute values on an existing layer in Cavalry (e.g. 'material.materialColor', 'position.x', 'scale.x', 'rotation.z', 'opacity').
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": {
"layerId": "<layerId>",
"attributes": "<attributes>"
},
"name": "cavalry_set_attributes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layerId | Yes | The unique layer ID (e.g., 'basicShape#1' or returned layer ID). | |
| attributes | Yes | Key-value map of attribute paths and their target values (e.g., {'position.x': 100, 'position.y': 200, 'material.materialColor': '#FF3366', 'rotation.z': 45}). |