tf_write_file
Write Terraform configuration and variable files into a sandboxed workspace, enabling agents without native filesystem access to create .tf and .tfvars files for policy-checked planning and approval workflows.
Instructions
Writes a .tf/.tfvars file into a sandboxed workspace (for agents with no native filesystem access).
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>",
"relativePath": "<relativePath>",
"content": "<content>"
},
"name": "tf_write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| workspaceId | Yes | ||
| relativePath | Yes |