detect
Identify objects in an image and return their bounding boxes. Optionally specify what to find via a prompt.
Instructions
Detect objects in an image and return bounding boxes. Uses Gemini for native bounding box support. Coordinates are normalized 0-1000 as [ymin, xmin, ymax, xmax].
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": "detect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Path to the image file or URL (http/https) | |
| prompt | No | Optional: what to detect (e.g., 'find all buttons', 'detect UI elements') |