search_classes_by_keyword
Find classes in decompiled Android code by keyword, limiting results by package and search scope such as class, method, field, code, or comment.
Instructions
Search for classes containing a specific keyword with flexible filtering options.
This tool performs a comprehensive search across decompiled Android code, allowing you to:
Search within specific packages by providing a package name
Target specific search scopes (class names, method names, fields, code content, comments)
Combine multiple search scopes for precise results
Args: search_term: The keyword or string to search for. This is the main search query.
package (optional): Package name to limit the search scope.
- If empty string (default), searches across all packages in the APK
- If provided, only searches within classes belonging to the specified package
- Example: "com.example.app" to search only in that package
search_in (optional): Comma-separated list of search scopes to target.
Valid values:
- "class": Search in class names only
- "method": Search in method names only
- "field": Search in field names only
- "code": Search in code content (method bodies, statements, etc.)
- "comment": Search in comments
You can specify one or multiple scopes:
- Single scope: "class" (only class names)
- Multiple scopes: "class,method" (class names OR method names)
- Combined: "class,method,code" (searches in all three scopes)
Default: "code" (searches in code content)
offset (optional): Starting index for pagination. Default: 0
count (optional): Maximum number of results to return. Default: 20Returns: dict: Paginated list of classes containing the search term, with metadata about matches
MCP Tool: search_classes_by_keyword Description: Advanced search tool that finds classes matching a keyword with package filtering and scope targeting capabilities. Use this when you need to find specific code patterns, class names, method names, or other identifiers across the decompiled APK.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| offset | No | ||
| package | No | ||
| search_in | No | code | |
| search_term | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||