prepare_workspace
Publishes uncommitted local workspace changes to a dedicated build branch for remote builds, uploading only changed files; use dryRun to preview file lists and byte counts before publishing.
Instructions
把本地工作区的未提交改动发布到目标仓库的专用构建分支(不建快照 commit 之外的东西,也不动你的分支)。只上传改动文件:其余内容由 GitHub 用 base_tree 在服务端拼接。dryRun=true 可先看会传哪些文件、多少字节,再决定是否真要发布。
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>",
"dir": "<dir>"
},
"name": "prepare_workspace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | Yes | 本地 git 工作区目录 | |
| repo | Yes | 目标仓库 owner/name | |
| branch | No | 构建分支名,默认 build-runner | |
| dryRun | No | 只统计不上传,默认 false | |
| baseRef | No | 本地改动所基于的分支/标签/SHA,默认 main | |
| message | No | 快照 commit 的说明 |