import_files
Import files into an isolated sandbox session from your host or from another session using source paths or session references.
Instructions
Imports files into the sandbox from host or from another session.
Each entry can be:
- Host path: "source" (host path), optional "destination"
- Cross-session: "session_id" (source session), "path" (container path),
optional "destination" — file must have been exported from that session.
Args:
session_id: ID returned by create_session (destination).
files: List of file objects. Examples:
[{"source": "/tmp/report.pdf", "destination": "report.pdf"}]
[{"session_id": "abc123", "path": "/workspace/out.csv", "destination": "out.csv"}]
Returns:
JSON with per-file results (source, destination, success, size, error).Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | ||
| files | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||