trim_path
Reveals only a chosen segment of a layer's stroke by setting start, end, and offset values (0–1), enabling line-draw or progress effects that can be animated with keyframes.
Instructions
Reveal only part of a layer's stroke (line-draw / progress effect). start/end/offset are 0–1. Animate the reveal by keyframing layers..style.stroke.trim.end.
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": {
"layerId": "<layerId>"
},
"name": "trim_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | Visible segment end 0–1 (default 1) | |
| start | No | Visible segment start 0–1 (default 0) | |
| offset | No | Shift the trim window 0–1 (default 0) | |
| layerId | Yes | Layer with a stroke to trim | |
| requestId | No | ||
| sessionId | No | ||
| expectedRevision | No |