servicestage__UpdateFile
Updates the contents of a file in a specified ServiceStage project repository at a given branch, tag, or commit reference, using namespace, project, and file path identifiers.
Instructions
[SERVICESTAGE] 更新指定项目仓库下的文件内容。
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": {
"namespace": "<namespace>",
"path": "<path>",
"project": "<project>",
"project_id": "<project_id>",
"ref": "<ref>"
},
"name": "servicestage__UpdateFile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | 分支名称或者tag标签名称或者commit sha。 | |
| path | Yes | 文件路径,需要将“/”替换为“:”。 | |
| project | Yes | 仓库项目ID,如果含有“/”,需要将“/”替换为“:”。 | |
| namespace | Yes | 命名空间ID或者URL编码名称。 | |
| project_id | Yes | 租户的project ID。 |