Skip to main content
Glama

get_path

Reads a mask or shape-layer path's geometry, including vertices, tangents, and closed state, and samples keyframed paths at a specified time or frame.

Instructions

Read a mask or shape path's geometry. Target a mask via mask (name or 1-based index) OR a shape-layer path via shapePath (a dotted display path like "Contents.Shape 1.Path", or an ADBE matchName resolving to / containing an "ADBE Vector Shape") / shapeIndex (1-based group index inside Contents). Pass time/frame to sample a keyframed path; otherwise the static value is read. Tangents are [x,y] RELATIVE to their vertex. Returns {vertices,inTangents,outTangents,closed,numKeys}.

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_path"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComp: name, numeric id, or { id: N } for duplicate-name-safe stable-id addressing.
maskNoMask target: mask name or 1-based index.
timeNoseconds — sample a keyframed path
frameNoframe — sample a keyframed path
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.
shapePathNoShape target: dotted display path or ADBE matchName resolving to (or containing) an ADBE Vector Shape.
shapeIndexNoShape target: 1-based group index in Root Vectors Group (Contents).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.3/5.0
Behavior4/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 — and it does substantial work: it declares the operation read-only, explains keyframe-vs-static sampling behavior, defines the tangent coordinate frame as relative to the vertex, and enumerates the return payload. It still omits failure modes and the precedence rule when multiple target selectors are passed simultaneously.

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?

Front-loaded with purpose, then targeting rules, then sampling behavior, then return shape — a logical order with little waste. The density is high and the parenthetical matchName detail is slightly crammed, but every clause carries information.

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?

For an 8-parameter read tool with no annotations and no output schema, the definition supplies both targeting rules and an inline return shape ({vertices,inTangents,outTangents,closed,numKeys}), which is exactly what is needed. The remaining gap is selector precedence/exclusivity when both mask and shapePath are provided.

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 100%, so the baseline would be 3, but the description adds meaning the schema lacks: concrete dotted-path syntax for shapePath ("Contents.Shape 1.Path"), that shapeIndex is a 1-based group index inside Contents, and that tangents are relative [x,y] pairs. That is genuine semantic value beyond the parameter descriptions.

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?

Opens with a specific verb+resource: "Read a mask or shape path's geometry." This cleanly distinguishes it from the mutating sibling set_path and from geometry siblings like get_layer_bounds, and it states the two supported target kinds immediately.

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 clear conditional guidance: target a mask via `mask` OR a shape path via `shapePath`/`shapeIndex`, and pass time/frame only to sample a keyframed path, "otherwise the static value is read." It does not name edge cases (e.g. what happens if both a mask and shapePath are supplied) or explicitly exclude misuse, which keeps it below a 5.

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