Write a file to a device
pi_file_writeCreate or overwrite one file on a remote SSH device relative to $HOME, creating missing parent directories and accepting UTF-8 or base64 content up to 16 MB.
Instructions
Create or overwrite one file on the remote device relative to $HOME, creating missing parent directories. content may be UTF-8 text or base64 and is limited to 16 MB.
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>",
"content": "<content>"
},
"name": "pi_file_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path relative to the authenticated user's remote $HOME directory. | |
| content | Yes | File content (UTF-8 or base64). | |
| encoding | No | utf8 | |
| device_id | Yes | IP address, hostname, MAC address, or device identifier of the target Raspberry Pi / SSH device. |