tf_workspace_init
Creates an isolated workspace for Terraform projects, copying local .tf files or setting up an empty sandbox to enable safe planning, policy checks, and cost estimates before human approval.
Instructions
Checks out/copies a Terraform project into a sandboxed workdir.
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": {
"workspaceId": "<workspaceId>"
},
"name": "tf_workspace_init"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sourceDir | No | Local directory to copy .tf files from. Omit to just create an empty workspace. | |
| workspaceId | Yes |