adb_find
Search for files on an Android device by name or pattern using glob matching. Specify search path, file type, depth, and result limits to find files quickly.
Instructions
Search for files on the device by name or pattern. Uses the find command with glob matching. Results are capped at maxResults to prevent unbounded output. Reports whether results were truncated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| searchPath | No | Starting directory for search | /sdcard |
| name | Yes | Filename pattern (glob: *.apk, config.*, *test*) | |
| type | No | Filter by type: file, directory, or any | any |
| maxDepth | No | Maximum directory depth to search (1-50, default 10) | |
| maxResults | No | Maximum results to return (1-10000, default 500) | |
| root | No | Use root shell for system paths | |
| device | No | Device serial |