run_gradle
Executes Gradle commands for builds, tests, linting, and dependency checks. Prefers ./gradlew in the project directory, falling back to the global gradle binary.
Instructions
Executes a Gradle command and returns stdout. Uses ./gradlew if present in cwd, otherwise falls back to the global 'gradle' binary. Use for: build, assembleDebug, test, lint, dependencies, etc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Optional project directory (where gradlew lives). Defaults to current directory. | |
| command | Yes | The gradle task and args, e.g. 'assembleDebug' or 'test --tests PlayerViewModelTest'. |