Compute positions for items
place_itemsCompute where N items go: around a circle, along an arc, in a grid, evenly along a line or a path. Returns places in item order: each item's centre, its top-left x and y for an item of item_size, and the rotation in degrees that faces along the layout. Free and read-only; it places nothing itself. Use it for radial menus, timelines and grids, then pass the positions to create_layers; for a single value use calculate, and for the outline of a shape shape_path.
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": {
"count": "<count>",
"layout": "<layout>"
},
"name": "place_items"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | How many places. | |
| intent | No | Optional: a few words on why. | |
| layout | Yes | The shape to place them on, e.g. `{kind: "circle", center: [540, 540], radius: 300}`. | |
| item_size | No | The items' size [width, height], to also get each top-left x/y. |