Collect Artifacts
collect_artifactsRetrieve specified files from a sandbox before its destruction, ensuring build outputs, test reports, coverage results, or logs are preserved for later use.
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 |