diagnose_image_quality
Analyzes local image sharpness, resolution, compression, exposure, and pixel-art traits to determine whether upscaling, deblurring, or nearest-neighbor scaling is needed.
Instructions
Run local sharpness (Laplacian variance), resolution, JPEG compression density, exposure, and pixel-art detection to decide whether upscaling, deblurring, or nearest-neighbor scaling is needed.
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": {
"imagePath": "<imagePath>"
},
"name": "diagnose_image_quality"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| imagePath | Yes | Path to the local image file. | |
| targetUseCase | No | Intended target use case for resolution threshold checks. | hd |