Terraform plan
terraform_planGenerates a Terraform diff for a module, persists the reviewed plan for exact apply, and flags destructive changes like forced replacement.
Instructions
Computes a Terraform diff for a module under the terraform/ root. Runs immediately in the sandbox and persists the plan so a subsequent apply can execute exactly the reviewed diff. Output is annotated when the plan contains destructive changes such as forced replacement.
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": {
"working_dir": "<working_dir>"
},
"name": "terraform_plan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| working_dir | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |