get_environment_logs
Read logs from a Magento Cloud environment by specifying project, environment, and log type, such as deploy or error logs.
Instructions
Read logs from a Magento Cloud environment via SSH. Use list_log_types to see available log types.
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": {
"project": "<project>",
"environment": "<environment>",
"type": "<type>"
},
"name": "get_environment_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | The log type to read, e.g. 'deploy', 'error', 'cron' | |
| lines | No | Number of lines to return (optional, defaults to 100) | |
| project | Yes | The Magento Cloud project ID | |
| environment | Yes | The environment name, e.g. 'staging', 'production' |