List media files in a folder
list_media_files_in_folderLists video, audio, and image files in a folder with sizes, kinds, and modification times, including subfolders if needed, so you can see what is available to import or pick files for other tools.
Instructions
List the video, audio and image files in a folder on disk with their sizes in bytes, kind and modification time, optionally including subfolders. Use it to see what is available to import (import_files), or to pick files for the other *_file tools. Kind is decided by extension. Hidden files and folders and symbolic links are skipped; a scan stops after 200000 entries (truncated=true). Returns counts and total size per kind and the files sorted by path. Works on files on disk; needs neither Premiere Pro nor ffmpeg.
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": {
"folder": "<folder>"
},
"name": "list_media_files_in_folder"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kinds | No | Only files of these kinds (decided by extension), e.g. ["video"]. Default: all three. | |
| folder | Yes | Absolute path of the folder. | |
| recursive | No | Also list files in subfolders. Default false. | |
| extensions | No | Only files with these extensions, without the dot, e.g. ["mp4", "mov"]. Default: every known video, audio and image extension. | |
| max_results | No | Maximum files to return. When there are more, the result has truncated=true and the total count. Default 500. |