workspace_reset
Reset a repository's build branch to a base branch and clear accumulated history, keeping long-lived build branches clean for future builds.
Instructions
把构建分支重置回某个基准分支,清掉累积的历史(构建分支会被长期保留)。
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": {
"repo": "<repo>"
},
"name": "workspace_reset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | 目标仓库 owner/name | |
| branch | No | 构建分支名,默认 build-runner | |
| baseRef | No | 重置到的基准分支,默认 main |