Organize my F2H files
organize_filesPuts the person's files and folders in order. action create_folder: a folder called name, inside target_folder_id. rename: file_id or folder_id gets name. move: file_ids and folder_ids go into target_folder_id. restore: file_ids come back from the trash (ids from delete_files). set_cover: the picture file_id, in folder_id, becomes the folder's cover on its page and link previews (Studio plan); anyone with the folder's link then sees that picture, even before a password, so it needs the person's yes first: tell them, then call with confirmed true. Leave target_folder_id out for the top of the account. Ids come from list_my_files.
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": "organize_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The new folder's name (create_folder) or the new name (rename) | |
| action | Yes | ||
| file_id | No | The file to rename, or the cover picture | |
| file_ids | No | Files to move or restore | |
| confirmed | No | true only after the person said yes to this cover | |
| folder_id | No | The folder to rename, or to give a cover | |
| folder_ids | No | Folders to move | |
| target_folder_id | No | Where to create or move into; leave it out for the top of the account |