photo_crop
Crop or reframe a photo by trimming pixels from any edge, and apply optional zoom or rotation to adjust the framing.
Instructions
Crop / reframe a photo (pixels from each edge, optional zoom and rotation).
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": {
"photo": "<photo>"
},
"name": "photo_crop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| left | No | ||
| zoom | No | ||
| album | No | Album name or id (default: current album) | |
| photo | Yes | Photo name, id or 1-based index in the album | |
| right | No | ||
| bottom | No | ||
| rotation | No | ||
| lockAspect | No | Keep Resolve's crop aspect lock (it rejects crops that change the aspect when on) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | True only when DaVinci Resolve confirmed the operation. | |
| data | No | ||
| tool | Yes | ||
| error | No | ||
| source | No | Where the result came from: the real DaVinci Resolve, the mock adapter (tests), or the server alone. | |
| status | Yes | ||
| message | Yes | ||
| warnings | Yes |