Skip to main content
Glama

Put text on a path

set_text_path

Makes a text layer follow an existing or newly created mask path in After Effects, including circle, ellipse, arc, line, or custom shapes; detach with remove.

Instructions

Make text follow a mask path of the same layer (Path Options). Either use an existing mask ('mask' index/name), or create one with 'shape': circle (radius, center), ellipse (size [w,h]), arc (radius, startAngle/endAngle in degrees, 0 = 12 o'clock, clockwise; text sits on top of the arc), line (points [[x,y],[x,y]]) or custom (points + tangents). Coordinates are in layer space; center defaults to the anchor point. Created masks use mode None so they don't cut the text. remove=true detaches the path.

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": "set_text_path"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
maskNoExisting mask index (1-based) or name. Default: last mask.
sizeNoellipse [width, height].
layerYesText layer: 1-based index, name, or {id}.
shapeNoCreate a new mask of this shape.
centerNoCircle/ellipse center (arc: center of the arc's top) in layer space. Default: anchor point.
closedNocustom: closed path.
pointsNoline/custom vertices in layer space.
radiusNocircle/arc radius in px.
removeNoDetach text from any path (Path = None).
reverseNoReverse path.
endAngleNoarc end angle (default 60).
maskNameNoName for the created mask.
inTangentsNocustom: in tangents.
lastMarginNoOffset of the text end (px).
startAngleNoDegrees, 0 = top, clockwise. circle/ellipse start point (default 270 = left); arc start (default -60).
firstMarginNoOffset of the text start along the path (px).
outTangentsNocustom: out tangents.
maskModeNoneNoSet an existing mask's mode to None (default true).
perpendicularNoCharacters perpendicular to the path (default true).
forceAlignmentNoSpread text between first and last margin.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare the generic non-read-only/non-destructive profile; the description adds genuinely non-obvious behavior: created masks use mode None specifically so they don't cut the text, coordinates are in layer space, and remove=true detaches the path. maskModeNone and forceAlignment/perpendicular are still only explained by the schema. Nothing here contradicts the annotations.

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 the mask-vs-shape fork, then per-shape parameter conventions and the remove behavior — a sensible ordering with no filler. It is dense to the point of being a run-on in the middle clause listing the five shapes, 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 a 21-parameter mutation tool with no output schema, the description covers the modes, key defaults, coordinate space, and the side effect on created masks. Remaining gaps are minor but real: no statement about required permissions, what happens if the target layer is not text, or whether an existing path is overwritten when both mask and shape are supplied.

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; the description still earns credit for clarifying conventions the schema states tersely — arc angle origin (0 = 12 o'clock, clockwise), that text sits on top of the arc, layer-space coordinates, center defaulting to the anchor point, and ellipse size as [w,h]. It does not explain interactions among the 21 params (e.g. which are ignored for which shape, precedence of mask vs. shape).

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?

Opens with a specific verb+resource: 'Make text follow a mask path of the same layer (Path Options)', and immediately splits the operation into its two modes (reuse an existing mask vs. create one via 'shape'). An agent knows exactly what the tool does. It stops short of naming siblings such as set_mask_path or set_shape_path, so the distinction from those tools must be inferred from the 'text' framing.

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?

Explicitly presents the two usage routes ('Either use an existing mask ... or create one with shape') and names remove=true as the detach case. That is clear when-to-use guidance for the main branches. It gives no exclusions or pointers to alternative tools for path work on non-text layers.

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