get_stack_compose
Retrieve the full Docker Compose file for a Portainer stack by its stack ID for inspection or backup.
Instructions
The full compose file for a Portainer stack.
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": {
"stack_id": "<stack_id>"
},
"name": "get_stack_compose"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stack_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |