read_file
Fetch a text file from an Android device via ADB, optionally as root and capped by max_bytes, returning content plus truncation status.
Instructions
Read a text file from the device (up to max_bytes). as_root uses su -c cat
(WSA/Magisk). Returns {remote, truncated, content}.
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": {
"remote": "<remote>"
},
"name": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| remote | Yes | ||
| serial | No | ||
| as_root | No | ||
| max_bytes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||