Reset a step
reset_stepSets a GitRanks Build folder back to a step the build passed, or to the step it is on: it answers how to bring in every file as it stands after that step. Use it when the files drifted, the person asks to do a step again, or a check keeps failing. It moves no progress, and the step is tried again before its check. Refused as not_found for a step the build neither passed nor is on.
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": {
"buildId": "<buildId>",
"step": "<step>"
},
"name": "reset_step"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| step | Yes | The slug of a step the build passed, or of the step it is on | |
| files | No | true: every file in the answer, instead of a fetch from GitHub | |
| buildId | Yes | The build's buildId (24 hex characters), as its start answered it or .gitranks/build.json holds it |