facenest_copy_photos
Copies original photo bytes into an existing folder specified after selecting photos for a deck or video project. Keeps HEIC and other formats, preserving existing files unless overwrite is enabled.
Instructions
Copy the ORIGINAL bytes of selected photos into a folder the user names — the step after picking photos for a deck/video project. Requires 'Allow writes'. The target must be an EXISTING absolute folder outside the FaceNest library and program directories (ask the user for it; do not guess or create folders). Up to 200 photos per call and 2,000 per session. Existing files are kept and a new name gets ' (2)' unless overwrite=true. rename_pattern is optional and uses {name} {ext} {id} {index} {date}; {ext} INCLUDES the leading dot ('.jpg'), so both '{name}{ext}' and '{name}.{ext}' work (example: '{index:02d}-{name}{ext}' -> '01-city.jpg'). A name with no image extension gets the original one appended. Default keeps the original name. Original files are copied byte-for-byte: HEIC stays HEIC, never the internal webp. Returns {ok, target_dir, requested, copied, failed, total_bytes, items:[{image_id, display_name, target_path, bytes, overwrote}], errors, usage}. A single failed file does not abort the rest — read errors.
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_ids": "<image_ids>",
"target_dir": "<target_dir>"
},
"name": "facenest_copy_photos"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_ids | Yes | ||
| overwrite | No | ||
| target_dir | Yes | Existing absolute folder, e.g. D:\Deck\assets. | |
| rename_pattern | No | Optional; tokens {name} {ext} {id} {index} {date}. |