get_logs
Fetch up to 50 recent build or service log lines to diagnose failed starts, track build progress, and identify restart loops.
Instructions
Last lines (default 20, up to 50) of a build or service log: why a build or start failed, how far a long build got, what a starting service prints. Constructor serves logs only live: a build log while the build runs, a service log for its current container while it runs (both replayed from the start, then streamed). The MCP follows the builds and services it starts or shows and keeps their last 50 lines, so they stay readable after the build ends or the container restarts; anything else can be read only while it runs. When a new container starts, the lines of the one before stay, above a '--- new container' marker, and restarts_seen counts them: that answers whether a service keeps restarting and why. An empty service log on a running service usually means a crash loop.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | No | How many of the last log lines to return. | |
| image_id | No | Image (build) ID: failure.image_id, or an image from get_deployment/list_images. | |
| service_id | No | Service ID from get_deployment (services[].id). | |
| deployment_id | No | All builds and services this deployment started. |