environment_protect
Protect a Project's own Environment so it cannot be removed, or unprotect it. Branches and PR Environments cannot be Protected. May stop to ask a human to approve.
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": {
"protected": "<protected>"
},
"name": "environment_protect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | No | Project name. | |
| approval | No | The ID of an approval a person granted. Send it when calling this tool again after it answered approval_required. | |
| protected | Yes | true to refuse removing this Environment until it is unprotected, false to allow it. | |
| environment | No | Environment name, e.g. production. |