Skip to main content
Glama

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

NameRequiredDescriptionDefault
compNoComp: name, numeric id, or { id: N } for duplicate-name-safe stable-id addressing.
timeNo
frameNo
layerYesLayer: name (string), 1-based index (integer), or { id: N } for duplicate-name-safe stable-id addressing.
instanceNoTarget 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.
includeExtentsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.9/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full burden. It does disclose the read-only nature ('Read') and the conditional extra output from includeExtents, but says nothing about cost, precision/rounding, behavior when the layer is hidden or outside the comp, or what happens if time is omitted.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three dense sentences, front-loaded with the return payload before the optional flag and the use case. No filler, though the closing rig jargon is only marginally informative for an agent.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With six parameters, no annotations, and no output schema, the description does a solid job of describing the returned values and the includeExtents variant. The remaining gap is the undocumented frame parameter and time/frame precedence, which an agent would need to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 50%; comp, layer, and instance are documented in the schema, and the description usefully explains includeExtents and implies the time parameter ('at a time'). However, the frame parameter and the time-vs-frame relationship are left entirely unexplained in both places.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Read a layer's rendered bounds at a time') and enumerates exactly what is returned: sourceRectAtTime rect in layer space, Position/Anchor/Scale, and comp-space visual center. This is clearly distinguishable from siblings like describe_layer or get_path.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a concrete use context ('the measurement primitive behind responsive-box and counter-centering rigs') and explains the includeExtents opt-in. It does not name an alternative tool or state when not to use it, so it stops short of full routing guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools