Copy a file from a QNX target
file_getCopies a regular file from a QNX target to the build host, verifies size and SHA-256, and returns small UTF-8 files inline when possible.
Instructions
Copy one regular file from the target to the build host, verifying size and SHA-256. Without local_path it lands in the server's state directory (path returned); with local_path it never follows or replaces a symlink and replaces a file only with overwrite=true. UTF-8 files up to 64 KiB are also returned inline as text.
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>",
"remote_path": "<remote_path>"
},
"name": "file_get"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_mb | No | ||
| target | Yes | Target name such as 'tb' (lowercase letters, digits, '-', '_'); must be inside the server allowlist | |
| overwrite | No | ||
| local_path | No | Host destination (absolute); default: a new file in the server state dir | |
| remote_path | Yes | Absolute path of the file on the target |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||