locate_objects
Locate specified objects in an image by supplying its path and candidate labels. Uses zero-shot object detection to identify and return positions for each label.
Instructions
Detect, find and/or locate objects in the image found at image_path.
Args:
image_path: path to the image
candidate_labels: list of candidate object labels as strings
hf_model (optional): huggingface zero-shot object detection model (default = "google/owlvit-large-patch14")
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>",
"candidate_labels": "<candidate_labels>"
},
"name": "locate_objects"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hf_model | No | ||
| image_path | Yes | ||
| candidate_labels | Yes |