Set generator
cavalry_set_generatorSet or replace a layer's generator type, e.g. circleDistribution for a Duplicator or ellipse for a Basic Shape, to change its procedural output.
Instructions
Swap the generator on a layer, e.g. set a Duplicator's "generator" to "circleDistribution" or a Basic Shape's to "ellipse".
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>",
"type": "<type>"
},
"name": "cavalry_set_generator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Generator type id, e.g. "circleDistribution", "gridDistribution". | |
| attrId | No | Generator attribute. Defaults to "generator". | |
| layerId | Yes | Cavalry layer id, e.g. "basicShape#1". Use cavalry_list_layers to find ids. |