# get_site_environment_log

Source: https://modulify.ai/docs/mcp/environment/get-site-environment-log

Returns the full output of one environment build.

- Title: Read an environment build log
- Scope: `config:read`
- Access: Read only

Reach for it when the `Error` and `Excerpt` from `get_site_environment` do not explain why a build failed. The output has three parts, the preview image, the publish build image and the live site image, which are built from the same lines.

## Inputs

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `projectId` | string | Yes | The site id. |
| `buildId` | string | No | The build id from `Latest` or `History` in `get_site_environment`. Leave it out for the last save. |