Test a committed revision
test_refRuns a committed revision's #[test]s as its own 2-4 minute build. Run required tests against the exact committed revision before deploying it. TEST a COMMITTED revision (the platform's in-house test gate — no external CI): the platform checks out the app's repo at the ref (omit for the 'main' head), GATES + RUNS its tests (constrained test code against the platform's vetted test SDK), and stores a commit-bound verdict. When the platform requires tests, deploy_ref requires a passing verdict for that commit. ASYNCHRONOUS, and the longest of the three: it compiles the app AND its tests, then runs them. Returns {BuildStarted:{build_id,app}}; then build_status (wait_s: 50), which reports 'tested' (green) or 'test_failed' with the summary.
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": "<app>"
},
"name": "test_ref"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | Yes | ||
| token | No | fallback bearer for clients that cannot send an Authorization header; when a header is present omit this argument, because a different token is refused | |
| reference | No |