Connect attributes
cavalry_connectConnects a source layer output to a target layer's input attribute in Cavalry, optionally replacing an existing connection.
Instructions
Connect an output to an input. A layer's main output is its "id" attribute, e.g. connect shape "id" -> duplicator "shapes", or colorMaterial "id" -> shape "material" with force=true.
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": {
"fromLayerId": "<fromLayerId>",
"toLayerId": "<toLayerId>",
"toAttrId": "<toAttrId>"
},
"name": "cavalry_connect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Replace an existing input connection. Defaults to false. | |
| toAttrId | Yes | Attribute path, e.g. "position.x", "rotation", "material.materialColor". | |
| toLayerId | Yes | Cavalry layer id, e.g. "basicShape#1". Use cavalry_list_layers to find ids. | |
| fromAttrId | No | Source attribute. Defaults to "id" (the layer's output). | |
| fromLayerId | Yes | Cavalry layer id, e.g. "basicShape#1". Use cavalry_list_layers to find ids. |