Sort a folder's files
workspace_files_sortSorts the files sitting directly in a folder into its subfolders, making a subfolder when two or more belong together; with folderId: null, files loose at the top go into the best folder anywhere. The same reading that files uploads on arrival: it runs in the background, and Home shows what moved, why, and an undo for each. Reads up to 60 files a call. Use it when someone asks to tidy or organize a folder; to put specific things somewhere, use workspace_folders_file. May return needs_confirmation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folderId | Yes | The folder to sort; null sorts what's loose at the top. | |
| workspace | No | Workspace slug, for tokens without a default. | |
| approvalId | No | Approval id from a prior needs_confirmation envelope. |