Skip to main content
Glama

layers_at

Read-onlyIdempotent

Inspect what is on screen at a given time or time range, including visible elements, their IDs, boxes, nested compositions, and assets, to identify referred elements and verify edits.

Instructions

What is on screen (headless): the nested compositions showing (in a transition, both), and every visible element (its id, the id set_props and set_motion take) with its box in composition pixels, the nested composition it is in, the asset it shows and the good/bad examples judged on it. t is one time, or a list of times (one answer each). With to, the stretch from t to to: every element seen in it once, with when it is first and last on screen and its box then (boxTo when it moved), e.g. what shows during a transition. With region, only the elements overlapping it. Use it to find which element a person means by "that, there", and to check a change landed where it should.

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": {
      "t": "<t>"
    },
    "name": "layers_at"
  }
}

Input Schema

NameRequiredDescriptionDefault
tYes
toNoEnd of a stretch from t (seconds, "80f" or "4b"): what is on screen at any time in it
assetNoAsset name (file in assets/ without .json)
regionNoOnly layers overlapping this rectangle, in composition pixels
compositionNoComposition name (file in compositions/ without .json)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.1.2
    • addedInput schema / properties / t / anyOf
      Added value: +[
      +  {
      +    "description": "Seconds (2.5), frames (\"75f\") or beats (\"4b\", needs meta.bpm). Snapped to a whole frame.",
      +    "minimum": 0,
      +    "pattern": "^\\s*\\d+(\\.\\d+)?\\s*[fbs]?\\s*$",
      +    "type": [
      +      "number",
      +      "string"
      +    ]
      +  },
      +  {
      +    "items": {
      +      "description": "Seconds (2.5), frames (\"75f\") or beats (\"4b\", needs meta.bpm). Snapped to a whole frame.",
      +      "minimum": 0,
      +      "pattern": "^\\s*\\d+(\\.\\d+)?\\s*[fbs]?\\s*$",
      +      "type": [
      +        "number",
      +        "string"
      +      ]
      +    },
      +    "maxItems": 20,
      +    "minItems": 1,
      +    "type": "array"
      +  }
      +]
    • removedInput schema / properties / t / description
      Removed value: -"Seconds (2.5), frames (\"75f\") or beats (\"4b\", needs meta.bpm). Snapped to a whole frame."
    • removedInput schema / properties / t / minimum
      Removed value: -0
    • removedInput schema / properties / t / pattern
      Removed value: -"^\\s*\\d+(\\.\\d+)?\\s*[fbs]?\\s*$"
    • removedInput schema / properties / t / type
      Removed value: -[
      -  "number",
      -  "string"
      -]
    • addedInput schema / properties / to
      Added value: +{
      +  "description": "End of a stretch from t (seconds, \"80f\" or \"4b\"): what is on screen at any time in it",
      +  "minimum": 0,
      +  "pattern": "^\\s*\\d+(\\.\\d+)?\\s*[fbs]?\\s*$",
      +  "type": [
      +    "number",
      +    "string"
      +  ]
      +}
  2. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, closed-world, so the safety bar is low; the description instead discloses semantics the annotations cannot: both compositions are reported during a transition, boxes are in composition pixels, and boxTo is returned when an element moved. The one gap is that it never states output shape/ordering or limits (e.g., what happens with many elements).

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

Conciseness3/5

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

Almost every clause carries information, but the first sentence is a long run-on with nested parentheticals that is hard to parse on first read. The mode explanations (t, to, region) are ordered sensibly after the core statement, but could be split into shorter sentences without loss.

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 five parameters, a nested region object, and no output schema, the description must carry return-value semantics, and it does describe the fields (ids, boxes, nesting, asset, example judgments). It is thin only on the asset/composition scoping parameters and on result size/ordering behavior.

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

Parameters4/5

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

Schema coverage is 80%, so the baseline is 3; the description earns above that by adding real meaning: t accepts one time or a list with one answer each, to turns the call into an interval query with first/last on-screen times, and region restricts to overlapping elements. The asset and composition filters are left entirely to the schema.

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

Purpose4/5

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

The opening clause 'What is on screen (headless)' plus the enumeration of returned data (nested compositions, visible element ids, boxes in composition pixels) makes the resource specific and queryable. It also names the sibling tools that consume the returned ids (set_props, set_motion), which helps position it. It stops short of a clean verb-first statement and never names a competing query tool to contrast with.

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?

The final sentence gives two concrete use cases: resolving deictic references ('that, there') to an element id, and verifying a change landed. The to/region clauses implicitly tell the agent which mode to pick for transitions or spatial lookup. No explicit exclusions or prerequisites (e.g., when to prefer get_composition) are stated.

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