Plan or run a build from source
qa_buildPlans or runs Android and iOS app builds from source, reports toolchain status, expected artifacts, and stores build logs; failures are typed as build errors, not test failures.
Instructions
Build the app from source. mode:"plan" (default, no side effects): commands, cwd, expected artifacts, toolchain status. mode:"run" (consent-gated job, needs sessionId): runs them, stores the build log, re-resolves the artifact. Failures are typed (GRADLE_FAILED, XCODEBUILD_FAILED, ...) and are not test failures.
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": {
"platform": "<platform>"
},
"name": "qa_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| approve | No | run | |
| variant | No | ||
| platform | Yes | ||
| consentId | No | run | |
| sessionId | No | Required for run (stores the build log). | |
| timeoutMs | No | run: per-step timeout (default 1200000). | |
| projectRoot | No | plan: resolve the project without a session. |