Skip to main content
Glama

Get selection

get_selection
Read-only

Retrieve the current After Effects selection—active project item, composition, selected layers, properties, keyframes, and project items—for read-only inspection or automation.

Instructions

What is selected right now: active project item, the comp (given or active), its selected layers, selected properties (path + layer) with their selected keyframes (index + time in seconds), and selected project items. Read-only.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_selection"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
limitNoMax selected properties to list (default 100).
detailNoFull layer descriptions and property values instead of brief refs (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false, and destructiveHint=false, so the safety profile is covered. The description adds useful detail about what the selection includes and keyframe time units, but it does not explain limit/truncation behavior or what happens when nothing is selected.

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

Conciseness5/5

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

It is a single front-loaded sentence with no wasted wording, and the return categories are listed in a readable sequence. Despite the density, every clause contributes to explaining what the tool returns.

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?

There is no output schema, so the description carries the burden of explaining return values, which it does by listing the major selected entities and keyframe time units. It is nearly complete for this read-only inspector, though it omits edge cases such as empty selections and truncation when limit is reached.

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 100%, and the schema itself explains comp, limit, and detail. The description reinforces the active/given comp behavior and describes returned fields, but it adds no extra parameter syntax, defaults, or edge-case semantics beyond the schema.

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?

It names a specific resource, the current selection, and enumerates exactly what is returned: active project item, comp, selected layers, selected properties, keyframes, and selected project items. This clearly distinguishes it from siblings such as get_comp_info, get_layer_info, and get_keyframes.

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

Usage Guidelines3/5

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

The phrase 'right now' implies using it to inspect current state, and 'Read-only' confirms the operation type, but the description gives no explicit when-to-use or when-not-to-use guidance and does not name alternatives. Usage is inferable but not directed.

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