List Gradle tasks
gradle_tasksLists available Gradle tasks for an Android project, supports filtering, and caches results until build files change.
Instructions
Lists Gradle tasks (cached until build files change). Use filter to narrow, e.g. "lint" or "assemble".
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectDir": "<projectDir>"
},
"name": "gradle_tasks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filter | No | Substring of task name/description | |
| refresh | No | Ignore cache | |
| projectDir | Yes | Absolute path to the Android project (gradlew is searched upwards) |