export_container
Export a container's filesystem to a tar archive in OCI layout, including running or stopped containers. Provide a container ID and an output file path to create a portable backup.
Instructions
Export a container's filesystem as a tar archive (OCI layout). Requires an output_file path.
Works on running containers as well as stopped ones (Apple Container 1.2.1+).
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": {
"container_id": "<container_id>"
},
"name": "export_container"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_file | No | ||
| container_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |