Analyze repository (auto-routing)
analyze_batch_autoAnalyze code for language violations, returning all results for small repos or paginating large ones. Use the returned cursor to fetch more pages if has_more is true.
Instructions
Smart entry point for LLM agents: automatically decides between returning all violations at once (small repos) or paginating (large repos). Pass the returned cursor back to continue pagination if has_more is true. Prefer this over manually choosing between analyze_repository and analyze_batch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute or relative path to the repository root. | |
| cursor | No | Opaque continuation token from a previous call. Omit or pass ``None`` to start from the first page. Default to None. | |
| language | Yes | Language identifier to restrict analysis (e.g. ``"python"``). | |
| max_files | No | Cap on the number of files to analyse. Default to 100. | |
| max_tokens | No | Approximate token budget for the ``violations`` payload. When all violations fit, they are returned in full; otherwise the first page is returned. Default to 8000. | |
| enable_external_tools | No | Opt-in execution of external linters. Default to False. | |
| allow_temporary_runners | No | Permit temporary-runner strategies. Default to False. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| cursor | Yes | ||
| has_more | Yes | ||
| violations | Yes | ||
| files_total | Yes | ||
| files_in_page | Yes |