portainer_stack_inspect
Retrieves stack details and compose file content, with optional unmasking of credential values for inspection.
Instructions
Get details of a stack including its compose file content.
Credential-looking values (stack Env variables named like *PASSWORD, *SECRET, *TOKEN, *KEY, ... and inline environment values in the compose file) are masked as [REDACTED] unless reveal_env=true. Always inspect with reveal_env=true before resending the compose file through portainer_stack_update — a masked file is rejected.
Args: stack_id: The ID of the stack to inspect reveal_env: Return credential values unmasked (default false)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stack_id | Yes | ||
| reveal_env | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |