Crop a source
set_source_cropRemove unwanted pixels from a source's edges by specifying crop amounts per side, and adjust the anchor to position the remaining area.
Instructions
Crop pixels off a source's edges. left/right/top/bottom are absolute pixels of the SOURCE's native resolution (not the canvas). anchor controls where the retained region sits (Center, Top, …). format omitted applies to both canvases.
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_id": "<source_id>"
},
"name": "set_source_crop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| left | No | ||
| right | No | ||
| anchor | No | ||
| bottom | No | ||
| format | No | ||
| scene_id | No | ||
| source_id | Yes |