as_inspect_code
Run Android Studio's headless code inspection to detect problems in your Android project, returning a structured list of issues grouped by severity and inspection type.
Instructions
Run Android Studio's code inspection headlessly and return the problems.
This launches the IDE's offline inspection engine (the same one behind "Analyze > Inspect Code") via studio64.exe inspect, writes XML reports to a temp dir and parses them into a structured problem list grouped by severity and inspection. It must index the project first, so it can take minutes on a large project. Do not run while Android Studio is open with the same project (config-dir contention) — close it first or expect a slower run.
Args: params (InspectInput): project_dir, optional scope_dir, optional profile, max_problems, timeout.
Returns: str: JSON with total_problems, by_severity, by_inspection, and a truncated 'problems' list of {inspection, severity, file, line, description}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |