tf_state
Manage Terraform state by listing resources, viewing attributes, moving, or removing resources from state without destroying them.
Instructions
Manage Terraform state. Supports the following operations:
list: List all resources in state
show: Show attributes of a specific resource
mv: Move/rename a resource in state (use with care)
rm: Remove a resource from state without destroying it (destructive)
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": {
"workdir": "<workdir>",
"operation": "<operation>"
},
"name": "tf_state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | No | Resource address for show/rm/mv source, e.g. aws_instance.web | |
| workdir | Yes | Absolute or relative path to the directory containing .tf files | |
| operation | Yes | State operation to perform | |
| workspace | No | Terraform workspace to use (default: current workspace) | |
| destination | No | Destination address for mv operation only |