Copy a file to a QNX target
file_putCopies a host file to a QNX target under /tmp or /data, verifies size, mode, and SHA-256, then installs it atomically; refuses symlinks/directories and won't overwrite unless enabled.
Instructions
Copy one host file to the target (below /tmp or /data, never into qnx-mcp's own directory) through a temporary name, verify size, mode and SHA-256 on the target, then install it atomically. Destinations that are directories or symlinks, and parent directories that are symlinks, are refused. Never replaces an existing file unless overwrite=true.
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": {
"target": "<target>",
"local_path": "<local_path>",
"remote_path": "<remote_path>"
},
"name": "file_put"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Octal permissions, e.g. 0644 or 0755 | 0644 |
| max_mb | No | ||
| target | Yes | Target name such as 'tb' (lowercase letters, digits, '-', '_'); must be inside the server allowlist | |
| overwrite | No | ||
| local_path | Yes | Host path of the file to copy | |
| remote_path | Yes | Absolute destination on the target, e.g. /tmp/app/config.json |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||