tf_output
Retrieve Terraform output values from the current state. Returns all outputs as JSON or a specific output by name.
Instructions
Read Terraform output values from the current state. Returns all outputs as JSON, or a specific output by name.
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>"
},
"name": "tf_output"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Specific output name to retrieve. Omit to get all outputs. | |
| workdir | Yes | Absolute or relative path to the directory containing .tf files | |
| workspace | No | Terraform workspace to use (default: current workspace) |