find_media
Search a folder and its subfolders for video, image, audio, or subtitle files by name and kind, returning absolute paths, sizes, and metadata for use with import_file.
Instructions
Look for footage, pictures, music or voice files on this computer, to bring in with import_file (path). Searches a folder (default: the home folder) and its subfolders, newest first; query keeps files whose name or folder holds every word; kind keeps one kind. Each result has its absolute path, size in bytes, when it changed, and for videos and sounds their length in seconds, for videos and pictures their width and height.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "find_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Absolute path of the folder to search (default: the home folder) | |
| kind | No | ||
| limit | No | ||
| query | No | Words the file name or its folders must contain, e.g. "beach drone" |