facenest_pick_best_video_frames
Selects the top N video frames of a person in one call, ranking by portrait, face size, or sharpness; prompts for a face choice when ambiguous.
Instructions
Pick the best N frames of a person in ONE call (read-only, no collection). Give ONE reference: cluster_id, face_id (library OR video face), image_id, image_path, frame_id, or frame_ids to rank an explicit set. Modes match the video page: preset='face' (portrait: frontality + sharpness), 'size' (largest face), 'quality' (sharpest whole frame). Use prefer_smiling=true only with preset='face' — wording guide: 'best smile' -> face+smile; 'best portrait' -> face; 'biggest face/close-up' -> size; 'sharpest/cleanest' -> quality; a vague 'best photos' -> face and SAY which mode you used. top comes from the user's number (1..12). Returns {status:'ok'|'needs_face_choice', reference:{face_id, face_id_source, strategy, ambiguous, candidates:[…]}, ranking:{preset, prefer_smiling, mode_label, order, weights, note}, best:[{rank, frame_id, face_id, video_id, video_name, timestamp_sec, timecode, similarity, score, smile, smile_bucket, face_px, face_ratio, bbox, det, marks, frame_path, frame_url, frame_url_abs}], alternatives:{size:[…], quality:[…]}, person_match:{max_similarity, threshold, below_threshold_count}, scored, candidates}. reference.verified is false when the face was picked geometrically (a video face has no cluster) — say so before asserting who it is. status='needs_face_choice' means the reference has 2+ real faces: show candidates to the user, then call again with select_face_id. Adjacent frames closer than min_gap_sec are never both picked. A 400 with ERR_BAD_ARGS lists the three modes when preset/prefer_smiling contradict each other.
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_pick_best_video_frames"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top | No | ||
| person | No | ||
| preset | No | face | |
| explain | No | ||
| face_id | No | ||
| frame_id | No | ||
| image_id | No | ||
| position | No | ||
| video_id | No | ||
| frame_ids | No | ||
| threshold | No | ||
| cluster_id | No | ||
| face_index | No | ||
| image_path | No | ||
| min_face_px | No | ||
| min_gap_sec | No | ||
| prefer_smiling | No | ||
| select_face_id | No | ||
| compare_presets | No |