tf_module_interface
Inspect a Terraform module's variables, outputs, and calls from the current working directory, resolving local or installed modules by address without running init.
Instructions
Variables (exact type expression, required/optional, default, sensitive/nullable/ephemeral, validation count), outputs and module calls of a module in THIS working directory: the root, a local module directory, or an installed module by address (module.network, resolved through .terraform/modules/modules.json, so downloaded registry/git modules work). Module calls are checked against what is installed. For public registry modules you have not installed, use the official terraform MCP server.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Terraform root module directory (need not be initialized for the root or a local path). Default: TERRAFORM_CWD_MCP_DIR, else the server's working directory. | |
| module | No | Module to describe: omitted = the root; a module address like 'module.network' or 'module.a.module.b' (resolved through .terraform/modules/modules.json, so downloaded registry/git modules work); or a directory path relative to dir | |
| description_chars | No | Truncate each description to this many characters; 0 = no limit (default 160) |