> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trelent.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Imports & Exports

> Move data into and out of runs.

Imports bring data into the run environment at `/mnt/`. Exports persist outputs after the run completes.

## Imports

```python theme={null}
from trelent_agents import Client, LocalImporter

client = Client(client_id="...", client_secret="...")

run = client.runs.create(
    sandbox="translator:latest",
    prompt="Translate all files in /mnt/ to Spanish.",
    imports=[
        LocalImporter(path="./documents"),
    ],
)
```

The directory is tarballed, uploaded, and extracted to `/mnt/` inside the sandbox. See [LocalImporter](/agents/importers/local).

## Exports

```python theme={null}
from trelent_agents import Client, S3Exporter

client = Client(client_id="...", client_secret="...")

run = client.runs.create(
    sandbox="translator:latest",
    prompt="Translate files to Spanish. Save to /output/.",
    exports=[
        S3Exporter(),
    ],
)
```

`S3Exporter` captures the run's workspace snapshot on completion and drops it into the default output bucket. To target a specific bucket or prefix:

```python theme={null}
S3Exporter(bucket="my-bucket", path="translations/run-1/")
```
