device_files
Manage files on a rooted Android device by listing, reading, writing, copying, moving, deleting, hashing, and setting permissions, with atomic replacement and backups by default.
Instructions
Root file manager: list/stat/read/write/append/hash/mkdir/chmod/copy/move/delete. Text or base64, atomic replacement, preserve existing ownership/mode, backup by default, optional compare-and-swap SHA256. Use transfer for large files/trees.
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": {
"action": "<action>",
"path": "<path>"
},
"name": "device_files"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 600 | |
| path | Yes | ||
| root | No | ||
| text | No | ||
| action | Yes | ||
| backup | No | ||
| encoding | No | utf-8 | |
| max_bytes | No | ||
| recursive | No | ||
| destination | No | ||
| expected_sha256 | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||