SandboxAPIs
v0.3.21Drop-in read-only replicas of GitHub, Jira, Slack and 22 more, preloaded with one fake company.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
orient Orient in the SandboxAPIs universe
START HERE. Returns everything needed to use SandboxAPIs with no docs: the universe/theme, every API surface and its base URL (git hosts and issue trackers), live-vs-snapshot modes and how to pin, the org and its teams/repos, notable entry points (each with a ready-to-run REST path), where the coverage manifest lives, and this server's access block: whether a key is set and how many requests are left this hour. Writes: this server is READ-ONLY, including for a scratch-enabled key. The scratch layer (a per-key, 24-hour overlay: GitHub issues and issue comments, Jira comments and transitions, an…
check_budget Check the remaining request budget
Costs nothing. Call it before any loop of more than a handful of requests. Returns this server's real hourly window (limit, remaining, when it resets) read from the provider's own budget endpoint, which is exempt from the budget it reports, plus whether a key is set and where to raise the limit. The window is ONE bucket per caller shared across every provider host, so the numbers apply to all of them.
| Parameter | Type | Description |
|---|---|---|
provider | string | The provider host you are about to call, one of the ids orient lists, e.g. 'github'. Optional: the budget is one shared window, so the numbers are the same for every provider. |
list_repositories List the org's repositories
List repositories for the universe's org. Results are identical to the provider's REST API and carry provider-form ids (node_id / numeric id).
| Parameter | Type | Description |
|---|---|---|
provider * | string | The git host to list repositories from, one of the ids orient lists: 'github', 'gitlab', 'bitbucket' or 'ado', e.g. 'github'. |
get_repository Get a repository
Fetch one repository by name (default: the flagship repo). Provider-shaped, with provider-form ids.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The git host to read the repository from, one of the ids orient lists: 'github', 'gitlab', 'bitbucket' or 'ado', e.g. 'github'. |
repo | string | The repository name without the organisation, e.g. 'parthenon', the flagship repo, which is used when omitted. |
list_pull_requests List pull requests / merge requests
List a repo's pull requests (GitHub) or merge requests (GitLab). Optional state filter.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The git host to read from, one of the ids orient lists: 'github', 'gitlab', 'bitbucket' or 'ado', e.g. 'gitlab' for merge requests. |
repo | string | The repository name without the organisation, e.g. 'parthenon', the flagship repo, which is used when omitted. |
state | string | Filter by state, one of 'open', 'closed', 'merged' or 'all', e.g. 'merged'; when omitted the provider's own default applies. |
get_pull_request Get a pull/merge request with its reviews
Fetch one PR (GitHub) / MR (GitLab) plus its reviews (GitHub) / approvals (GitLab). Returns both in one result; each carries provider-form ids for cross-referencing.
| Parameter | Type | Description |
|---|---|---|
number * | integer | The pull request number as the provider shows it (the merge request iid on GitLab), a positive integer, e.g. 47. |
provider * | string | The git host to read from, one of the ids orient lists: 'github', 'gitlab', 'bitbucket' or 'ado', e.g. 'github'. |
repo | string | The repository name without the organisation, e.g. 'parthenon', the flagship repo, which is used when omitted. |
list_issues List issues
List a repo's issues. Optional state filter (open/closed/all).
| Parameter | Type | Description |
|---|---|---|
provider * | string | The provider to read issues from, one of the ids orient lists: 'github' or 'gitlab' (per repository), or 'jira' or 'linear' (across the whole tracker), e.g. 'jira'. |
repo | string | The repository name without the organisation, e.g. 'parthenon', the flagship repo, which is used when omitted; ignored by 'jira' and 'linear'. |
state | string | Filter by state, one of 'open', 'closed' or 'all', e.g. 'closed'; when omitted the provider's own default applies. |
get_user Get a user
Fetch a user by login/username. Provider-shaped, with provider-form ids.
| Parameter | Type | Description |
|---|---|---|
login * | string | The user's login (GitHub) or username (GitLab), e.g. 'athena'. |
provider * | string | The git host to read the user from, one of the ids orient lists: 'github', 'gitlab', 'bitbucket' or 'ado', e.g. 'github'. |
search_commits_by_author Search commits by author
Find commits authored by a given login in a repo. Returns SHAs (identical across GitHub and GitLab, invariant #5) with a REST path to fetch each, so you can cross-reference against either provider.
| Parameter | Type | Description |
|---|---|---|
author * | string | The author's login, matched without regard to case, e.g. 'athena'. |
provider | string | The git host whose REST path each returned commit carries, 'github', 'gitlab', 'bitbucket' or 'ado', defaulting to 'github'; commits are read from GitHub either way, because the SHAs are identical on… |
repo | string | The repository name without the organisation, e.g. 'parthenon', the flagship repo, which is used when omitted. |
get_snapshot Get a pinned snapshot hostname
Return the pinned, reproducible hostname for a provider. Point your client's base URL at it for drift-free CI. A snapshot regenerates byte-identically on every request.
| Parameter | Type | Description |
|---|---|---|
provider * | string | The provider to pin, one of the ids orient lists, e.g. 'github'; the newest frozen generation for it is returned, with any older ones listed beside it. |