{"uid":"cap_rJ9YdUKbzqWlCTHg0Naxy","slug":"kihustle-terraform-hcl-formatter-light-8003fb57","name":"KiHustle Terraform HCL Formatter Light","description":"Kostenlose Guides, Solo-Playbooks und Artikel zu KI, Automation und Side Hustles — für Menschen, die mit echten Systemen online Einkommen aufbauen wollen. Transparent finanziert über faire Affiliate-Links.","url":"https://kihustle.tech/agents/api/v1/terraform-hcl-formatter-light?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string"}}},"responseSchema":{"type":"json","example":{"result":"processed","status":"success"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3Ie1kPY_073s0GEDFPQW4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Formats and normalizes Terraform HCL (HashiCorp Configuration Language) code provided as plain text, returning a cleaned and properly structured version.","exampleAgentPrompt":"Can you format this Terraform HCL code for me? Here's the raw text: resource \"aws_instance\" \"example\" { ami=\"ami-0c55b159cbfafe1f0\" instance_type=\"t2.micro\" }","exampleUseCases":[{"title":"Auto-format messy Terraform config","prompt":"I just copied some Terraform HCL from Stack Overflow and it's badly indented — can you run it through a formatter and give me back the clean version? Here's the code: variable \"region\" { default=\"us-east-1\" description=\"AWS region\" }"},{"title":"Pre-commit HCL style cleanup","prompt":"Before I commit this Terraform file, can you format this HCL text so it follows standard conventions? The snippet is: module \"vpc\" { source=\"./modules/vpc\" cidr_block=\"10.0.0.0/16\" }"},{"title":"Normalize HCL from generated output","prompt":"My code generator spat out some HCL that isn't properly formatted — can you clean it up? Here it is: locals { env=\"prod\" owner=\"devops-team\" project=\"payments-infra\" }"}],"resultDescription":"A JSON object containing a 'result' field with the formatted/processed HCL text and a 'status' field indicating success or failure of the formatting operation.","failureModes":["Empty or missing 'text' field returns an error or empty result","Malformed non-HCL input may still return 'success' with unchanged or mangled output","Very large HCL files may time out or be truncated","Input containing special characters or encoding issues may cause unexpected output"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, low-cost ($0.002/call) programmatic way to format Terraform HCL text without setting up a local `terraform fmt` environment. Useful in CI pipelines, agent workflows, or editor integrations where spinning up a full Terraform binary is impractical.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-27T06:54:22.428Z","isFirstParty":false,"canonicalSlug":"kihustle-terraform-hcl-formatter-light-8003fb57"}