Collect GitHub Source
collect_github_sourceCollect a GitHub revision as this agent's complete source, enabling later Promote provenance.
Uses the organization's configured GitHub App, or the local server's enabled CLI account/repository allowlist. Does not use the coding assistant's GitHub token. GitHub authorization must already be connected in VAIL. Commit intended source changes before collection; it reads the chosen ref, not local uncommitted files. This replaces source and makes prior generated results outdated; scan again before creating a new experiment. Existing frozen experiments remain unchanged.
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": {
"agent_id": "<agent_id>",
"repository": "<repository>"
},
"name": "collect_github_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | ||
| exclude | No | ||
| include | No | ||
| agent_id | Yes | ||
| repository | Yes | Repository name owner/repo or its GitHub URL. |