analyze_image
Analyze an image with the Moondream model to generate captions, detect specified objects, or answer visual questions using an image path and prompt.
Instructions
Analyze an image using the Moondream model
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_path": "<image_path>",
"prompt": "<prompt>"
},
"name": "analyze_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Command to analyze the image. Use 'generate caption' for image captioning, 'detect: [object]' for object detection, or any question for image querying. | |
| image_path | Yes | Path to the image file to analyze |