get_method_by_name
Fetch a specific method's source code from a class to inspect Android app logic. Kotlin metadata is stripped by default; set slim=False for a raw dump.
Instructions
Fetch the source code of a method from a specific class.
Kotlin compiler metadata is stripped by default; pass slim=False for a raw dump.
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": {
"class_name": "<class_name>",
"method_name": "<method_name>"
},
"name": "get_method_by_name"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slim | No | ||
| class_name | Yes | ||
| method_name | Yes | ||
| method_signature | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||