tf_workspace
Manage Terraform workspaces by listing, showing active, selecting, or creating new workspaces. Specify the working directory and operation to perform.
Instructions
Manage Terraform workspaces. Supports:
list: List all workspaces and show which is active
show: Show the current workspace name
select: Switch to a workspace
new: Create a new workspace
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_workspace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Workspace name for select or new operations | |
| workdir | Yes | Absolute or relative path to the directory containing .tf files | |
| operation | Yes | Workspace operation to perform |