Skip to main content
Glama

Set / convert text box

set_text_box
Destructive

Resize paragraph text boxes, adjust vertical alignment or auto-fit height, and convert point text to paragraph text—or back—by recreating the layer when After Effects cannot convert in place.

Instructions

Resize a paragraph text box (boxSize, boxPosition = top-left in layer space), set vertical alignment / auto-fit (AE 24.6+), or convert point text <-> paragraph text (mode). AE cannot convert in place, so conversion re-creates the layer and copies style, transform, masks, effects, path/more options and animators (Source Text keyframes are not copied); the new layer replaces the old one (keepOriginal keeps it hidden).

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

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
modeNoTarget type (default: box if boxSize is given, else the current type).
layerYesText layer: 1-based index, name, or {id}.
autoFitNoBox auto-fit height policy.
boxSizeNo[width, height] in px.
boxPositionNoTop-left of the box in layer space.
insetSpacingNoInner padding of the box (px).
keepOriginalNoOn conversion, keep the original layer (disabled) instead of deleting it.
verticalAlignmentNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations declare destructiveHint=true, and the description justifies that with concrete detail: AE cannot convert in place, the layer is re-created, style/transform/masks/effects/path/more options and animators are copied, Source Text keyframes are NOT copied, and keepOriginal retains the old layer disabled. This is exactly the side-effect disclosure an agent needs before a destructive call.

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?

One dense but front-loaded sentence, with the mutation risk placed in the second clause. Every clause carries information, though the nested parentheticals make it harder to scan than it could be.

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 9-parameter destructive mutation with no output schema, the description covers the important risks: conversion semantics, keyframe loss, version requirement, and keepOriginal behavior. It omits what the call returns (e.g., the new layer identity), which matters for chaining follow-up calls on the re-created layer.

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 89%, so the baseline is 3; the description adds real meaning beyond it by explaining the version gate on autoFit and the consequence of mode (layer re-creation). It repeats rather than enriches details like boxPosition being top-left in layer space, so it does not reach 5.

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?

The description states three specific capabilities with named parameters: resize (boxSize/boxPosition), set vertical alignment / auto-fit, and convert point<->paragraph text via mode. The resource is unambiguous ('paragraph text box') and the conversion clause separates it from creation siblings like create_paragraph_text.

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?

It gives clear selection context: mode defaults to box when boxSize is supplied, otherwise the current type, and auto-fit requires AE 24.6+. It does not explicitly say when to prefer create_paragraph_text or set_text_more_options instead, so it stops short of full alternative routing.

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