List PR Previews
previews_listLists the pull-request preview deployments for an app, newest first:
each one's pr_number, head_sha, base_url, status,
sanitised error_message and expires_at.
Use it after pushing a branch or opening a pull request to find the
preview URL for that PR, and to check whether its build succeeded. A
preview with a failed status and an error_message is the fastest
signal that a change broke the build.
Optionally filter by pr_number. limit defaults to 20 and caps at
100. Previews expire, so an old PR may have no live preview.
Takes the app_id from apps_list.
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": {
"app_id": "<app_id>"
},
"name": "previews_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum previews to return. Default 20, maximum 100. | |
| app_id | Yes | The app uuid returned by `apps_list`. | |
| pr_number | No | Only previews for this pull request number. | |
| organization_id | No | An organisation uuid or slug. When supplied, `app_id` is resolved within that organisation and may be a slug instead of a uuid, mirroring the Meridian web app. |