list_gradle_projects
Lists Gradle modules (sub-projects) in a project to reveal multi-module build structure. Use it to find the right module for building variants or running Gradle tasks, such as :app:assembleDebug.
Instructions
List the Gradle modules (sub-projects) in project_dir (gradlew projects) — the map of a multi-module build, e.g. :app, :core, :feature:login. Use it to find which module to point gradle_build/list_gradle_variants at, or to address a task at one module with ':' (e.g. :app:assembleDebug). A single-module build reports no sub-projects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_dir | No | Path to the Android project root containing the Gradle wrapper (gradlew). Optional if session_set_defaults has pinned a project_dir for this session. |