file_list
List directory contents on a connected Android device by providing an absolute path, returning the files and folders found in that location.
Instructions
List directory contents on the device.
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": {
"path": "<path>"
},
"name": "file_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the directory on the device (e.g., /sdcard/) | |
| serial | No | Device serial number |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The directory that was listed | |
| count | Yes | Number of entries returned | |
| entries | Yes | Directory entries |