img_tools_convert
[$x402 pago por llamada] Convierte una imagen a otro formato (png, jpg, webp, bmp, gif, tiff).
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": {
"format": "<format>",
"file_base64": "<file_base64>"
},
"name": "img_tools_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | Yes | Formato destino: png, jpg/jpeg, webp, bmp, gif o tiff. | |
| x_payment | No | Opcional. Header X-PAYMENT (x402) ya construido por el cliente/agente llamador. Si se omite, la llamada devuelve 402 con los requisitos de pago, igual que la API HTTP directa. | |
| file_base64 | Yes | Contenido del archivo codificado en base64 (o data URL). Se convierte a multipart/form-data internamente. |