subject_box
Get the bounding box [x, y, w, h] of an image layer's main subject in document pixels to locate or crop subjects precisely.
Instructions
Bounding box [x,y,w,h] of the main subject of an image layer, in document px.
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": {
"layer": "<layer>"
},
"name": "subject_box"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | Yes | ||
| project | No |