Estimate a photo
analyze_food_photoEstimate calories and macros from a photo of food. Accepts a base64-encoded JPEG, PNG or WebP. Returns each detected food with its estimated weight and nutrition. Use when the user supplies a photo rather than naming a food. The photo must be passed as image_base64; clients do not attach images automatically.
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_base64": "<image_base64>"
},
"name": "analyze_food_photo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content_type | No | image/jpeg, image/png or image/webp | image/jpeg |
| image_base64 | Yes | Base64-encoded image bytes, no data: prefix |