build_xreal_apk
Queue an asynchronous Android APK build for XREAL One Pro and receive a jobId to track progress via polling.
Instructions
Queues an asynchronous Android APK build for XREAL One Pro and returns immediately with a jobId. Unity's BuildPipeline.BuildPlayer blocks the editor for minutes; this tool dispatches the build via EditorApplication.delayCall so the MCP request doesn't time out. Poll get_build_status with the returned jobId to follow progress and pick up the final BuildReport summary (output path, size, build time, errors, warnings).
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_xreal_apk"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scenes | No | Scene paths to include (defaults to scenes in build settings) | |
| buildType | No | Build configuration type | Development |
| outputPath | No | Output path for the APK. Defaults to Builds/AppName.apk | |
| strictMode | No | Enable strict mode for debugging | |
| runAfterBuild | No | Automatically deploy and run after successful build | |
| buildAppBundle | No | Build Android App Bundle (AAB) instead of APK | |
| scriptDebugging | No | Enable script debugging | |
| developmentBuild | No | Include development features (profiler, debug logs) | |
| compressionMethod | No | APK compression method | LZ4 |
| autoconnectProfiler | No | Auto-connect Unity profiler on start | |
| deepProfilingSupport | No | Enable deep profiling (slower builds) | |
| splitApplicationBinary | No | Split into base APK and expansion files |