Get a Depot container build
depot_get_buildRetrieve a single Depot container build's status, timestamps, duration, and cache hit ratio. Use it to check whether a build succeeded or is still running, then poll again after a pause.
Instructions
Show one Depot container build: its status, when it was created, started and finished, how long it ran, and how much of it the cache served.
Use this to check on a specific build by id: "did build X succeed", "is it still running", "how well did the cache do". It is one request and returns quickly, so it is the right way to poll a build that is in progress; call it again after a pause rather than waiting inside a tool.
It does not explain a failure. When the status is failed, error, or canceled, call depot_diagnose_build with the same buildId (and the projectId, if you know it) to find the failing step and its logs. For a list of recent builds use depot_list_builds; for Depot CI runs, which are a different product, use depot_get_ci_run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buildId | Yes | The build id, as shown by depot_list_builds or the Depot dashboard. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | The next tool to call, when there is an obvious one. | |
| build | Yes | ||
| failure | Yes | True for failed, error, or canceled. | |
| terminal | Yes | True once the build has stopped, whatever the result. | |
| cacheSummary | Yes |