Terraform workspaces
tf_workspacesList all Terraform workspaces for a project directory and show which workspace is currently active.
Instructions
List Terraform workspaces with current workspace marked.
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_workspaces"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | Yes | Terraform project directory | |
| binary | No | terraform or tofu (default $TF_BINARY, else terraform) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| current | Yes | ||
| retained | No | ||
| workspaces | Yes |