Upload a file to an instance
file_uploadUpload a file to a running instance. Provide the file content as a string and the remote path. Max 10MB. Uses keyless SCP. Docs: https://www.runcrate.ai/docs/instances/connecting#file-transfer
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": {
"id": "<id>",
"content": "<content>",
"path": "<path>"
},
"name": "file_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Instance ID | |
| path | Yes | Remote file path (e.g., /workspace/train.py) | |
| content | Yes | File content to upload | |
| workspace | No | Workspace ID (optional: defaults to the authenticated workspace) | |
| environment | No | Environment name (optional: defaults to the environment this session acts in) |