download
Copies one file from a remote workspace into the local project directory (up to 64 MiB), replacing an existing local file only when overwrite is set.
Instructions
Copy one file from the remote workspace into the LOCAL project directory (up to 64 MiB). An existing local file is only replaced with overwrite. Results show project-relative paths only.
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": {
"remote": "<remote>"
},
"name": "download"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fleet | No | Fleet name. Omit to use the default. | |
| local | No | Destination in the local project directory. Default: the file name. | |
| remote | Yes | File on the remote machine. | |
| context | No | Context name. Omit to use the default. | |
| overwrite | No | Replace an existing local file. Without it an existing file is an error. | |
| workspace | No | Workspace id. Omit to use this session's workspace on the fleet. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bytes | Yes | ||
| local | Yes | ||
| where | Yes | ||
| remote | Yes | ||
| workspace | Yes |