android_api_extractor
Decompile an APK to extract Retrofit and OkHttp3 API endpoints from smali bytecode, then output a plain endpoint list or Postman collection for API analysis.
Instructions
Decompiles an APK and extracts Retrofit HTTP annotations and OkHttp3 endpoints from smali bytecode. Outputs a list of API endpoints or a Postman collection.
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": "android_api_extractor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apk_path | No | Absolute path to the APK file to decompile and analyze | |
| smali_folder | No | Absolute path to an already-decompiled smali folder (skips apktool step) | |
| output_format | No | Output format: plain text list or Postman collection JSON | txt |