Skip to main content
Glama

ae_text_set_document

Update the text content and global style, such as font, size, tracking, fill, stroke, and justification, of a TextDocument on a specified After Effects text layer.

Instructions

Perbarui isi & gaya global TextDocument

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": {
      "layerIndex": "<layerIndex>"
    },
    "name": "ae_text_set_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
fontNo
textNo
compIdNoID numerik CompItem (opsional jika comp aktif)
allCapsNo
leadingNo
compNameNoNama CompItem (opsional)
digitSetNo
fauxBoldNo
fontSizeNo
trackingNo
applyFillNo
directionNo
fillColorNo
smallCapsNo
fauxItalicNo
layerIndexYes
applyStrokeNo
autoLeadingNo
boxTextSizeNo
strokeColorNo
strokeWidthNo
timeSecondsNo
lineJoinTypeNo
baselineShiftNo
justificationNo
strokeOverFillNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.3/5.0
Behavior2/5

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

No annotations are supplied, so the description must disclose behavior and does not. "Perbarui" signals mutation, but there is no word on whether this overwrites the entire document style or applies a partial merge, whether it is undoable, or whether it requires a text layer to exist — a serious gap for a 26-field mutation tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The single phrase is front-loaded and contains no filler, but at this length for a 26-parameter tool the brevity is under-specification rather than conciseness. Nothing is prioritized because nothing beyond the name-level purpose is stated.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No annotations, no output schema, 26 undocumented parameters, no enums, and a one-line description: the definition gives an agent nowhere near enough to invoke this correctly. It does not even clarify the partial-versus-full style application semantics that the schema's optional fields make essential.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 26 parameters at 8% schema description coverage (only compId and compName are documented), the description carries the burden of explaining the remaining two dozen fields, yet it names none of them. Critical ambiguities — whether omitted style fields are left untouched or reset to defaults, how timeSeconds interacts with setting text, what digitSet/direction/lineJoinType accept — are entirely unaddressed.

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?

States a specific verb and resource ("Perbarui isi & gaya global TextDocument" = update a TextDocument's content and global style). The word "global" implicitly contrasts with the range-level sibling ae_text_set_range_style, but no sibling is named and the scope boundary is left for the agent to infer.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use, when-not-to-use, or alternative guidance at all. The agent must guess whether this applies to the whole text layer versus a character range, and nothing states prerequisites such as needing an existing text layer selected or an active comp.

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