capcut_add_mask
Attach a mask shape to a CapCut segment, replacing any existing mask. Adjust center, size, rotation, feather, and corner rounding.
Instructions
Attach a mask shape (from capcut_list_masks) to a segment, replacing any mask already on it. center/width/height/rotation/feather/roundCorner are fractions (0-1) unless noted.
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": {
"draft": "<draft>",
"segmentId": "<segmentId>",
"name": "<name>"
},
"name": "capcut_add_mask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| draft | Yes | ||
| width | No | ||
| height | No | ||
| invert | No | ||
| centerX | No | ||
| centerY | No | ||
| feather | No | ||
| rotation | No | ||
| segmentId | Yes | ||
| roundCorner | No |