Collect Artifacts
collect_artifactsBefore a sandbox is destroyed, copy matching files such as build outputs, test reports, coverage data, benchmark results, or logs to persistent storage for later review.
Instructions
Copy selected files out of a sandbox before it is destroyed.
USE THIS for build output, test reports, coverage, benchmark results or logs you want to keep or quote.
Patterns are workspace-relative shell globs ('dist/*.js'), or '/name' for a recursive search ('/junit.xml'). Files land in the server's own state directory; this tool cannot write anywhere on the developer's machine.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patterns | Yes | Workspace-relative globs, e.g. ['dist/*.js']. | |
| experiment_id | Yes | The experiment to collect from. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| skipped | No | ||
| artifacts | Yes | ||
| total_bytes | No | ||
| experiment_id | Yes |