cavalry_get_attribute
Retrieve the value of a specified attribute from a Cavalry layer, such as position.x or fontSize. Enables accessing layer properties for animation automation.
Instructions
Read the value of an attribute from a Cavalry layer.
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>",
"attrPath": "<attrPath>"
},
"name": "cavalry_get_attribute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layerId | Yes | The layer ID | |
| attrPath | Yes | The attribute path, e.g. "position.x", "fontSize" |