Photos: Folder
photo_folderCreate or rename Synology Photos folders and set a folder cover photo, with duplicate names refused; use copy_photos or move_photos for moving or copying.
Instructions
Create or rename a folder in Synology Photos, or set its cover photo. A name the parent folder already has is refused. To copy or move folders use copy_photos / move_photos; to delete, delete_photo_folders. For folders outside Photos, use File Station's create_folder and rename when File Station write is enabled, or ask the user to do it in DSM.
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": {
"action": "<action>"
},
"name": "photo_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | One folder name, without `/`. | |
| space | No | `personal` (default) or `shared` (Shared Space). IDs belong to one space. | personal |
| action | Yes | `create` (`name` inside the parent folder), `rename` (the folder to `name`) or `set_cover` (the folder, `item_id`). | |
| item_id | No | `set_cover`: an item ID from list_photos. | |
| folder_id | No | For `rename` and `set_cover`; not the space root. Folder ID (list_photo_collections type=folder). | |
| parent_id | No | `create`: the parent folder's ID, or parent_path. | |
| folder_path | No | Or the folder's path, such as `/Trips/2024`; not with folder_id. | |
| parent_path | No | Or its path, such as `/Trips` (`/`: the space root). |