image edit
image_editImage tools: resize (fit inside a box), crop, rotate, grayscale and convert or compress PNG and JPEG images from a URL or base64. Up to 16 megapixels. Costs $0.003 USDC per call (x402).
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": "image_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crop | No | x,y,width,height | |
| width | No | ||
| format | No | png | jpeg | |
| height | No | ||
| rotate | No | 90 | 180 | 270 | |
| quality | No | JPEG quality 10-100 | |
| grayscale | No | ||
| image_url | No | ||
| image_base64 | No |