Detect and fix a product photo's rotation
detect_rotationChecks whether a product photo is upright or sideways and returns the exact clockwise degrees needed to correct it, plus a confidence score and an uncertainty flag.
Instructions
Checks whether a product photo is upright and, if not, exactly how many degrees to rotate it (clockwise). Returns a confidence score and an honest flag when the answer is uncertain. Bills the caller's own BlueVetaUpright account per call, same as the REST API -- requires an API key from https://blueveta.com/upright, set as BLUEVETA_UPRIGHT_API_KEY or passed as apiKey.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "detect_rotation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiKey | No | Overrides the BLUEVETA_UPRIGHT_API_KEY environment variable for this call | |
| imageUrl | No | A hosted image URL for BlueVetaUpright to fetch | |
| imageBase64 | No | Raw image bytes, base64-encoded (use this OR imageUrl, not both) | |
| returnImage | No | Also return the corrected image (priced 1.5x, same as the REST API) |