Read a file from a device
pi_file_readRead a file from a remote Raspberry Pi or SSH device relative to $HOME, returning UTF-8 text when safe and base64 for binary data.
Instructions
Read one file from the remote device relative to $HOME. auto returns UTF-8 text when safe and base64 for binary data.
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": {
"device_id": "<device_id>",
"path": "<path>"
},
"name": "pi_file_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path relative to the authenticated user's remote $HOME directory. | |
| encoding | No | auto | |
| device_id | Yes | IP address, hostname, MAC address, or device identifier of the target Raspberry Pi / SSH device. |