List Repository Branches and Commits
github_refs_listLists the branches and recent commits of the GitHub repository
connected to an app, as Meridian sees them. Use this to get a real
git_sha for deployment_create instead of guessing one: a sha that
has not been pushed to the connected repository will fail during the
build rather than at the tool call.
Returns repository (owner/name plus connected), branches (each
with name, commit_sha, protected) and commits (each with sha,
message, author, date).
Pass branch to list commits from a specific branch; the repository's
default branch is used otherwise. An app with no connected repository
reports connected: false with empty lists rather than an error, as do
an empty repository and an unknown branch.
Takes the app_id from apps_list. Requires the hosting.view
permission on the app, like environments_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": "github_refs_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_id | Yes | The app uuid returned by `apps_list`. | |
| branch | No | List commits from this branch. Defaults to the repository default branch. | |
| 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. |