Skip to main content
Glama

Set text style

set_text_style

Change font, size, colors, stroke, tracking, leading, and other style fields on one or more text layers, or on a specific character range or keyframe time.

Instructions

Change style fields (font, size, colors, stroke, tracking, leading, justification, caps, faux bold/italic, indents...) on one or more text layers. Optional 'range' {start, end} styles only those characters (0-based, end exclusive; needs AE 24.3+). If Source Text is keyframed, every keyframe is updated unless 'time' targets one keyframe.

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": {
      "style": "<style>"
    },
    "name": "set_text_style"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
timeNoOptional: write the style into a Source Text keyframe at this time.
layerNoSingle text layer (alternative to 'layers').
rangeNoStyle only this character range (AE 24.3+).
styleYesText style. Only the fields you pass are changed.
layersNoText layers to change: array of refs, or 'selected' / 'all' (all must be text layers).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior3/5

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

Annotations declare readOnlyHint=false but destructiveHint=false, so the agent already knows this is a non-destructive mutation; the description adds real value on top: only passed fields change, every keyframe is updated unless 'time' targets one, range requires AE 24.3+, unknown fonts fail with suggestions, and colors/widths implicitly toggle fill/stroke. It does not cover partial-failure behavior across multiple layers, which matters for a multi-target write.

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?

Three sentences, front-loaded with the core action and enumerating affected fields usefully for scanning. The field list is somewhat redundant with the 100%-covered schema, but it is compact and 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?

No output schema exists, and the description covers the important semantics (partial updates, keyframe fan-out, version gate, font resolution) for a 6-parameter tool with a deeply nested style object. Remaining gaps are minor: return/error shape and behavior when several layers are targeted and one fails.

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 description coverage is 100%, so the schema already documents every parameter including the nested style object. The description adds meaning beyond it for 'range' (0-based, end exclusive, AE 24.3+) and 'time' (single keyframe targeting), but leaves other parameter behavior to the schema, so it sits around the baseline with a modest boost.

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 (change) plus the resource (style fields on text layers) and enumerates the field families affected: font, size, colors, stroke, tracking, leading, justification, caps, indents. That enumeration makes clear it is a styling mutation, distinct from content-setting siblings such as set_text_content or set_text_more_options.

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 concrete conditional guidance: use 'range' to style only a character subset, use 'time' to target one Source Text keyframe, and use find_font / list_fonts for font selection. It does not explicitly say when to prefer a different styling tool, but the conditions for each optional parameter are spelled out.

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