Generate Terraform for a whole compartment
generate_compartment_terraformDiscover all resources in an OCI compartment and emit a Terraform module that reproduces them. Unrecognised types become annotated skeletons.
Instructions
Discover every resource in a compartment and emit a Terraform module (provider variables + one block per resource) to reproduce it. Unrecognised types become annotated skeletons.
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": {
"compartmentId": "<compartmentId>"
},
"name": "generate_compartment_terraform"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| compartmentId | Yes | Compartment OCID |