Build and deploy fresh robot code
build_and_deployBuild FTC TeamCode and deploy only after a successful build, then restart the Robot Controller app to prevent deploying a stale APK.
Instructions
Safest competition-day deployment path: build TeamCode first and only install the APK if that build succeeds, then restart the Robot Controller app. This prevents accidentally deploying a stale APK.
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_and_deploy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clean | No | Run a clean build before deployment | |
| serial | No | adb device serial; required when multiple devices are connected | |
| stacktrace | No | Return extended Gradle failure context | |
| projectPath | No | Path to the FtcRobotController SDK project. Defaults to $FTC_TOOLCHAIN_PROJECT_DIR, then the workspace clone made by create_project. | |
| timeoutSeconds | No | Build timeout in seconds (default 600) |