get_layer_bounds
Read a layer's rendered bounds at a given time, including source rectangle, transform values, comp-space center, and optional on-screen bounding box for responsive rigs.
Instructions
Read a layer's rendered bounds at a time: sourceRectAtTime (left/top/width/height in layer space) + Position/Anchor/Scale + the comp-space visual center. includeExtents:true also returns the on-screen bounding box (corners transformed to comp space). The measurement primitive behind responsive-box and counter-centering rigs.
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": "get_layer_bounds"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Comp: name, numeric id, or { id: N } for duplicate-name-safe stable-id addressing. | |
| time | No | ||
| frame | No | ||
| layer | Yes | Layer: name (string), 1-based index (integer), or { id: N } for duplicate-name-safe stable-id addressing. | |
| instance | No | Target a specific AE when more than one is connected (e.g. "2026", "2025", or a major like "26"). Omit when only one AE is open — see list_instances. | |
| includeExtents | No |