Apktool MCP Server

search_in_files

Locate specific text patterns within designated file types in APKTool project directories. Streamlines Android app reverse engineering by targeting .smali and .xml files, with configurable result limits.

Instructions

Search for a pattern in files with specified extensions.

Args: project_dir: Path to the APKTool project directory search_pattern: Text pattern to search for file_extensions: List of file extensions to search in max_results: Maximum number of results to return

Returns: Dictionary with search results

Input Schema

NameRequiredDescriptionDefault
file_extensionsNo
max_resultsNo
project_dirYes
search_patternYes

Input Schema (JSON Schema)

{ "properties": { "file_extensions": { "default": [ ".smali", ".xml" ], "items": { "type": "string" }, "title": "File Extensions", "type": "array" }, "max_results": { "default": 100, "title": "Max Results", "type": "integer" }, "project_dir": { "title": "Project Dir", "type": "string" }, "search_pattern": { "title": "Search Pattern", "type": "string" } }, "required": [ "project_dir", "search_pattern" ], "title": "search_in_filesArguments", "type": "object" }
ID: jtugu4w3w9