cavalry_set_attribute
Set one or more attributes on a Cavalry layer using dot-notation paths like position.x, fontSize, or fill.color. Update layer properties directly for precise control.
Instructions
Set one or more attributes on a Cavalry layer. Attributes use dot-notation paths, e.g. "position.x", "fontSize", "fill.color".
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_attribute"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layerId | Yes | The layer ID (e.g. from create_layer) | |
| attributes | Yes | Key-value map of attribute paths to values, e.g. {"fontSize": 48, "position.x": 100} |