cavalry_bounding_box
Retrieve the bounding box of a layer, returning coordinates like x, y, width, height, centre, left, right, top, bottom. Optionally use world space coordinates.
Instructions
Get bounding box of a layer. Returns {x, y, width, height, centre, left, right, top, bottom}.
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>"
},
"name": "cavalry_bounding_box"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layerId | Yes | Layer ID | |
| worldSpace | No | Use world space coordinates |