cavalry_create_primitive
Create a geometric primitive shape in Cavalry—such as an ellipse, rectangle, star, or arrow—by specifying the generator type, layer name, and optional initial attributes for color, scale, and position.
Instructions
Creates a geometric primitive shape in Cavalry (e.g. 'ellipse', 'rectangle', 'star', 'superEllipse', 'polygon', 'ring', 'arrow', 'line') with optional initial attributes like 'material.materialColor', 'scale.x', 'scale.y', 'position.x', 'position.y'.
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": {
"generator": "<generator>",
"name": "<name>"
},
"name": "cavalry_create_primitive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name for the primitive layer. | |
| generator | Yes | The primitive generator type. | |
| attributes | No | Optional initial attributes (e.g., {'material.materialColor': '#FF3366', 'scale.x': 0.5, 'scale.y': 0.5, 'position.y': 100}). |