find_objects
AI: find things by name. Returns candidate boxes [x1,y1,x2,y2] in document pixels, best first, with scores. It never picks: several candidates can mean several objects or a wrong match, so check the boxes (preview with a region) before passing one to select_with_ai target=object.
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>",
"word": "<word>"
},
"name": "find_objects"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max | No | ||
| word | Yes | What to find: "dog", "suit", "red car". Letters, digits, spaces. | |
| image | Yes | Image id, as returned by open_photo. | |
| layer | No | Run on this layer alone (e.g. a placed photo), not the whole image. | |
| layer_id | No | Layer id (takes priority over `layer`). |