Skip to main content
Glama

set_path

Writes mask or shape path geometry by setting vertices, optional tangents, and closed state; keyframes the path at a specified time or frame, otherwise applies it statically.

Instructions

Write a mask or shape path's geometry. Same target selector as get_path (mask / shapePath / shapeIndex). vertices is required (array of [x,y] in layer space). inTangents/outTangents are optional (each [x,y] relative to its vertex) and default to zero — straight corners — and must match the vertex count when given. closed defaults true. With time/frame the path is keyframed at that time; otherwise it is set statically (or keyed at the current time if the path is already keyframed). Returns a read-back {kind,mode,vertices,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>",
      "vertices": "<vertices>"
    },
    "name": "set_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 — keyframe the path here
frameNoframe — keyframe the path here
layerYesLayer: name (string), 1-based index (integer), or { id: N } for duplicate-name-safe stable-id addressing.
closedNodefault true
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.
verticesYesArray of [x,y] vertex pairs (layer space).
shapePathNoShape target: dotted display path or ADBE matchName.
inTangentsNoOptional [x,y] in-tangents relative to each vertex; defaults to zeros.
shapeIndexNoShape target: 1-based group index in Contents.
outTangentsNoOptional [x,y] out-tangents relative to each vertex; defaults to zeros.

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?

With no annotations supplied, the description carries the full burden and does substantial work: it discloses that tangents default to zero ('straight corners'), must match vertex count, that closed defaults true, and crucially how keyframing behaves — keyed at time/frame when given, otherwise static or keyed at current time if the path is already animated. It also describes the read-back return shape. It stops short of stating permissions, undo/irreversibility, or failure behavior on mismatched tangent counts.

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?

The purpose is front-loaded in the first sentence, followed by target selection, required/optional parameter semantics, and return value in a logical order. It is dense but essentially every clause conveys a constraint; minor cramming of tangents, closed, and keyframe behavior into one block keeps it from a 5.

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 a 12-parameter mutation tool with no annotations and no output schema, the description covers purpose, target addressing, required vs. optional geometry fields, keyframing semantics, and the returned read-back structure — enough to invoke it correctly. Remaining gaps are minor: no statement of layer-space definition, preconditions (e.g., target must exist), or error behavior on vertex/tangent count mismatch.

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 already 100%, so the baseline is 3, but the description adds meaning beyond the schema: it frames tangents as relative-to-vertex offsets producing straight corners when omitted, imposes the cross-parameter constraint that tangent arrays must match vertex count, and explains the semantic difference between supplying time/frame versus not. This is genuine added value over the field 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?

States a specific verb and resource — 'Write a mask or shape path's geometry' — which unambiguously identifies the write operation. It also explicitly pairs itself with the sibling get_path by sharing its target selector, so an agent can tell the read/write pair apart without opening either schema.

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 'Same target selector as get_path (mask / shapePath / shapeIndex)' line routes the agent to the complementary read tool and clarifies target addressing. The time/frame vs. static branch gives concrete conditional usage guidance. No explicit when-not-to-use or error-case exclusions are stated, keeping 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