Upscale an image
luw_upscale_imageEnhance image quality and enlarge photos 2x, 3x or 4x for sharper detail. Set precision to control how closely the upscaled result keeps the original structure.
Instructions
Luw.ai Photo Enhance AI: enhance the quality of an image and enlarge it 2x, 3x or 4x (8x is sent as 4x). Costs 1 credit.
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": {
"image": "<image>"
},
"name": "luw_upscale_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Image to upscale (public https:// link or data: URI; the local npx server also accepts a file path). | |
| scale | No | 2, 3 or 4 (default 2). 8 is accepted and gives 4x, the largest size. | |
| precision | No | How strictly to keep the input's structure: 90 = precise, 75 = balanced, 40 = creative. |