appcrane_get_deploy_log
Retrieve the build log from a deployment to diagnose pre-build errors that occur before the container starts. Provide deployment ID or app slug and stage.
Instructions
Read the deploy/build log for a specific deployment — the output that came out of clone / npm install / docker build / health-validate, BEFORE the container started running. This is what you want when a deploy fails fast (1-2 second failures are almost always pre-build errors that never reach the runtime container, so appcrane_get_logs has nothing to show). Pass a deployment_id from appcrane_deploy / appcrane_get_app.recent_deployments, OR omit it and pass slug+env to get the latest deployment's log.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "appcrane_get_deploy_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | App slug. Required when deployment_id is not given. | |
| tail | No | Return only the last N lines. Defaults to 500; full log can be many KB on a long build. | |
| stage | No | Required when deployment_id is not given. Target stage (legacy alias: env). | |
| deployment_id | No | Specific deployment id. Preferred — unambiguous. |