get_path
Reads a mask or shape-layer path's geometry, including vertices, tangents, and closed state, and samples keyframed paths at a specified time or frame.
Instructions
Read a mask or shape path's geometry. Target a mask via mask (name or 1-based index) OR a shape-layer path via shapePath (a dotted display path like "Contents.Shape 1.Path", or an ADBE matchName resolving to / containing an "ADBE Vector Shape") / shapeIndex (1-based group index inside Contents). Pass time/frame to sample a keyframed path; otherwise the static value is read. Tangents are [x,y] RELATIVE to their vertex. Returns {vertices,inTangents,outTangents,closed,numKeys}.
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": "get_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| comp | No | Comp: name, numeric id, or { id: N } for duplicate-name-safe stable-id addressing. | |
| mask | No | Mask target: mask name or 1-based index. | |
| time | No | seconds — sample a keyframed path | |
| frame | No | frame — sample a keyframed path | |
| layer | Yes | Layer: name (string), 1-based index (integer), or { id: N } for duplicate-name-safe stable-id addressing. | |
| 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. | |
| shapePath | No | Shape target: dotted display path or ADBE matchName resolving to (or containing) an ADBE Vector Shape. | |
| shapeIndex | No | Shape target: 1-based group index in Root Vectors Group (Contents). |