Global - Face Detection (0.03 credits)
face_recognition_detectDetects faces in an image and searches a scoped face collection, returning face locations and match results for identity verification workflows.
Instructions
Detects faces and can search your collection. Returns face locations and matches. Inputs: image, min_score, and search_mode. Requires collection_id to scope face detect/search to your collection. Matched-person details are omitted from responses when collection_id is not provided. Costs 0.03 credits per successful call.
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>",
"min_score": "<min_score>",
"search_mode": "<search_mode>",
"collection_id": "<collection_id>"
},
"name": "face_recognition_detect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Face or document photo as a base64-encoded JPEG/PNG string (with or without a data:image/...;base64, prefix) or a public https:// image URL. | |
| min_score | Yes | Minimum face match score threshold (0.2–1.0 depending on endpoint). | |
| max_results | No | Maximum number of search results to return. | |
| search_mode | Yes | Face search accuracy mode. Allowed values: FAST, ACCURATE. | |
| collection_id | Yes | Face collection ID that scopes search to your enrolled persons. Required for face detect and 1:N search tools. |