Fetch a collected corpus
fetch_corpusFetch, validate, and get a link to the artifact a completed collection run produced, without blocking if the run is still going. Always check buildAuthorized before building.
Instructions
Fetch the artifact a completed collection produced, validate it, and return a link to it. Reports whether the run is still going rather than blocking. ALWAYS read buildAuthorized in the result: it is false for every freshly collected corpus, and false means do not build from this.
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": {
"repository": "<repository>",
"workflow_run_id": "<workflow_run_id>"
},
"name": "fetch_corpus"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out_dir | No | Where to save the package. Default: a new private folder in the system temp directory. | |
| repository | Yes | owner/name | |
| workflow_run_id | Yes | The id `collect` returned |