Build app
build_appBuild an Android APK using Gradle for a specified module and variant. On failure, receive compiler errors with file:line; on success, get the APK path.
Instructions
Build an APK with Gradle (assemble). On failure returns compact compiler errors with file:line. On success returns the APK path.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "build_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| module | No | Gradle module, e.g. 'app' (defaults to session) | |
| variant | No | Build variant, e.g. 'debug' (defaults to session) | |
| projectDir | No | Project root (defaults to session) |