facenest_find_similar_faces
Find photos with faces matching a reference image, library photo, face ID, or named person. Returns similar faces with similarity scores, thumbnails, and paging options.
Instructions
Find photos with a face similar to a reference. Three reference kinds (any ONE): image_id (a library photo; add face_id or face_index to pick one face), face_id (a face id from image_context.faces / a previous result — library OR video face), image_path (absolute path to an image on this machine; read locally, NOT uploaded, NOT added to the library; jpg/png/webp/bmp/heic/heif/avif, <=20 MB). Returns {query, reference:{face_id, face_id_source, strategy, ambiguous, candidates:[{face_id, index, bbox, area_ratio, det_score, cluster_id, person_name, thumb_url, thumb_url_abs}]}, threshold, count, returned, offset, has_more, total_at_least, matches:[{image_id, display_name, similarity, matched_face_id, thumb_url, thumb_url_abs, source_path, taken_at}], source:'face-embedding'}. matches[].thumb_url is the matched FACE crop, not the whole photo; use image_id / display_name when showing the photo itself. count is the returned page, not the total; page with offset. ambiguous:true means the reference contains 2+ real faces and none was chosen explicitly — ask the user which one, then pass face_id/face_index (or person when the face is named in People). Default threshold 0.40; scores are affected by face size and angle, so treat 0.40+ as a higher chance rather than proof. No face in the reference -> ERR_MCP_NO_FACE.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "facenest_find_similar_faces"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| offset | No | ||
| person | No | Exact People name (case-sensitive); resolves to that cluster. | |
| face_id | No | One face: inside `image_id`, or any face id on its own. | |
| image_id | No | From facenest_search (library photo). | |
| threshold | No | ||
| face_index | No | 0-based, left to right (use when nobody is named yet). | |
| image_path | No | Absolute path to a reference image outside the library. |