Copy secrets between environments
copy_environmentCopy secrets from one environment of a project to another without the values passing through you (they are re-encrypted on the server). Requires secrets:read on the source, secrets:write on the target and the editor role. Protected secrets are skipped.
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": "<project>",
"from": "<from>",
"to": "<to>"
},
"name": "copy_environment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target environment | |
| from | Yes | Source environment | |
| keys | No | Only these keys (default: all) | |
| project | Yes | Project slug or id | |
| overwrite | No | Replace keys that already exist in the target |