facenest_create_smart_album
Create a smart album from up to 30 rules matching people, tags, dates, places, or specific photos; set sorting, grouping, and a cover image for automatic photo collections.
Instructions
WRITE TOOL (needs 'Allow writes'). Max 30 rules — the same closed set as facenest_query_photos. {type:'person', op:'is'|'is_not', cluster_id:int} (unknown id -> ERR_SMART_PERSON_NOT_FOUND); {type:'tag', op:'has'|'not_has', name:str, source:'any'|'auto'|'manual'} — call facenest_list_tags first; matching ignores case; {type:'date', op:'between'|'on'|'before'|'after'|'this_year'|'this_month'|'last_days', from:'YYYY-MM-DD', to:'YYYY-MM-DD', days:1..3650, sources:['exif'|'ctime'|'mtime'|'upload'] (optional)}; {type:'place', op:'is'|'is_not', country/admin1/city} — is_not only counts photos that have GPS; {type:'photos', op:'in', ids:[…]} pins exact ids (max 2000; unknown ids -> ERR_SMART_PHOTOS_UNKNOWN); {type:'person_count', op:'eq'|'lte'|'gte', n:0..50} where 0 means no faces; {type:'favorite', op:'is'|'is_not'} for the user's favorites; {type:'camera'|'lens', op:'is', value:str} — camera accepts model, make+model or just the make, case-insensitive; lens matches by tokens (a shortened lens string works); {type:'origin', op:'is', value:'photo'|'video_frame'}; {type:'caption', op:'has'|'not_has', text:str, lang:'en'|'zh' (optional)}. Also match_mode 'all'|'any', sort 'taken_at'|'uploaded'|'name', sort_dir 'asc'|'desc', group_by 'none'|'year'|'month'|'place', cover_image_id. Returns {smart_id, name, photo_count, preview:[{image_id, display_name, thumb_url, thumb_url_abs, taken_at}] (first 8 photos), preview_count, app_url}; when photo_count is 0 it also returns rule_counts / zero_rules so you can see which rule emptied it. Album names are unique — a duplicate name is rejected with ERR_SMART_NAME_DUP.
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": {
"name": "<name>",
"rules": "<rules>"
},
"name": "facenest_create_smart_album"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| sort | No | taken_at | |
| rules | Yes | person / tag / date / place / photos objects, max 30. | |
| group_by | No | none | |
| sort_dir | No | desc | |
| match_mode | No | all | |
| description | No | ||
| cover_image_id | No | Optional cover photo id. |