tf_state_addresses
Lists resource instance addresses in the current Terraform state, optionally filtered, read-only, without locking or refreshing; refuses non-existent non-default workspaces to avoid creation.
Instructions
List resource instance addresses in the current Terraform state (terraform state list), optionally filtered. Read-only: never locks, never refreshes. With a remote backend this reads S3/GCS/HCP using the server's credentials; a non-default workspace that does not exist is refused (reading it would create it).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Only the instance whose id attribute equals this (terraform state list -id) | |
| dir | No | Terraform root module directory (must already be initialized). Default: TERRAFORM_CWD_MCP_DIR, else the server's working directory. | |
| limit | No | Max addresses to return (default 200) | |
| filter | No | Case-sensitive substring of the address, e.g. 'module.network' or 'aws_instance.' |