Collect Artifacts
collect_artifactsCopy selected files out of a sandbox before it is destroyed. Use glob patterns to keep build output, test reports, coverage, or logs.
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.
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": {
"experiment_id": "<experiment_id>",
"patterns": "<patterns>"
},
"name": "collect_artifacts"
}
}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 |