Export Session Diagnostics
terminal_export_diagnosticsExport a bounded ZIP snapshot of retained terminal session evidence for diagnostics, using metadata by default or sensitive raw bytes when explicitly included; returns archive ID, size, and SHA256.
Instructions
Export a bounded ZIP snapshot of retained Session evidence. include_raw=true explicitly includes sensitive terminal/output/write bytes. Default exports metadata only. Returns ID, size and SHA256; download with terminal_read_diagnostic. Host memory retains at most four archives for 15 minutes, evicting oldest first. No filesystem path is exposed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Active Session ID or short reference. | |
| include_raw | No | Explicitly include terminal contents; default false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | Yes | ||
| sha256 | Yes | ||
| expires_at | Yes | ||
| diagnostic_id | Yes |