Terraform modules summary
tf_modules_summaryLists modules used by an initialized Terraform or OpenTofu project, returning each module's key, source, and version from .terraform/modules/modules.json. Run init first.
Instructions
List the modules used by an initialized Terraform/OpenTofu project (key, source, version). Reads .terraform/modules/modules.json — run init first.
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": {
"cwd": "<cwd>"
},
"name": "tf_modules_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Terraform project directory |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | Yes | ||
| modules | Yes | ||
| retained | No |