link_properties
Sets a destination property's expression to reference a source property, auto-deriving standard transform and effect links and returning expression errors inline.
Instructions
One-call expression link: set the DEST property's expression to reference the SOURCE property. The source accessor is auto-derived for the standard transforms (position/scale/rotation/opacity/anchorPoint/orientation/x|yRotation) and for DIRECT effect params (effect("Effect")("Param")). For anything not auto-derivable (masks, nested shape/effect params) pass expressionTemplate explicitly — the handler will error rather than emit a link that silently fails. The result is force-evaluated and its expressionError returned inline. Returns { destLayer, destProp, expression, expressionError, enabled, derived }.
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": {
"source": "<source>",
"dest": "<dest>"
},
"name": "link_properties"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Comp: name (string), or { id: N } for duplicate-name-safe stable-id addressing. Defaults to active comp. | |
| dest | Yes | ||
| source | Yes | ||
| destComp | No | Comp (name or { id: N }) for the dest layer if different from the source comp. Note: an expression can only reference layers within the dest's own comp, so a cross-comp link will report an expressionError. | |
| instance | No | Target 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. | |
| expressionTemplate | No | Override the auto-derived link with an explicit expression string. Required when the source accessor can't be auto-derived (masks, deeply-nested params). |