list_files
List a directory's files, either its immediate children or all files beneath it recursively, to inspect APK decompile or decode output before reading individual files. Read-only.
Instructions
List a directory's immediate children, or every file beneath it with recursive - e.g. to see what decompile_apk or decode_apk produced before reading individual files. Only reads. Returns { dirPath, count, entries: [{ path, isDirectory, size }], truncated } where path is relative to dirPath and size is in bytes (0 for directories); truncated is true if the limit cut the listing short. Errors if dirPath doesn't exist. To find files by content rather than name use search_code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum entries to return. Default and maximum 500. | |
| dirPath | Yes | Absolute path of the directory to list. Must exist. | |
| recursive | No | List every entry under dirPath, not just its immediate children. Default false. | |
| workspace | No | Workspace name (not id). Created if it doesn't exist, and this call is recorded as a job in its history. Defaults to "default". |