get_plan_logs
Retrieve detailed execution logs from a Terraform Cloud plan using the plan ID. Automatically follows redirects to access raw log output for analysis and troubleshooting.
Instructions
Retrieve logs from a plan.
Gets the raw log output from a Terraform Cloud plan operation, providing detailed information about the execution plan.
API endpoint: Uses the log-read-url from GET /plans/{plan_id}
Args: plan_id: The ID of the plan to retrieve logs for (format: "plan-xxxxxxxx")
Returns: The raw logs from the plan operation. The redirect to the log file is automatically followed.
See: docs/tools/plan.md for reference documentation
Input Schema
Name | Required | Description | Default |
---|---|---|---|
plan_id | Yes |