get_file
Copy a remote file from a Labgrid place to your local machine using scp. Overwrites only when specified, and returns the resulting file size.
Instructions
Copy remote_path from an acquired place to local_path (scp).
An existing local target is refused unless ``overwrite=True`` (pinned
ToolError); the parent directory must already exist. Returns
``{"place", "got": local_path, "bytes": <resulting size>}``. NOT
read-only (it writes a local file), but non-destructive to the DUT.
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": {
"place": "<place>",
"remote_path": "<remote_path>",
"local_path": "<local_path>"
},
"name": "get_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| place | Yes | ||
| overwrite | No | ||
| local_path | Yes | ||
| remote_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||