workspace__ExecuteScriptOrCommand
Executes scripts or commands in batch across workspace resources, with optional gray rollout controls to run on a subset and stop when failures reach a threshold.
Instructions
[WORKSPACE] 批量执行脚本或命令。
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": {
"project_id": "<project_id>"
},
"name": "workspace__ExecuteScriptOrCommand"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gray_count | No | 灰度资源数量。 | |
| project_id | Yes | 项目ID。 | |
| script_ids | No | 执行的脚本列表。 | |
| resource_ids | No | 执行脚本的资源列表。 | |
| resource_type | No | 资源类型,如桌面(DESKTOP)。 | |
| execution_timeout | No | 执行脚本的超时时间,单位分钟。 | |
| gray_resource_ids | No | 灰度执行脚本的资源列表。 | |
| gray_fail_threshold | No | 灰度失败阈值,达到阈值后停止进行下一批资源执行脚本,小于gray_count。 |