adb_file_stat
Retrieve detailed metadata for files or directories on an Android device, including size, permissions, ownership, timestamps, SELinux context, and file type via a read-only ADB operation.
Instructions
Get detailed file metadata: size, permissions, ownership, timestamps (access/modify/change), SELinux security context, and file type. Read-only operation.
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": "adb_file_stat"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File or directory path on device | |
| root | No | Use root shell for protected paths | |
| device | No | Device serial |