Analyze repository (batch / LLM-safe)
analyze_batchAnalyze a repository to detect language-specific violations, prioritizing severity within a token budget. Fetch additional pages with the provided cursor.
Instructions
Analyse a repository path and return token-budgeted, paginated violations designed for LLM context windows. Highest-severity violations appear first. Pass the returned cursor to resume from the next page.
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. Violations are added until the budget would be exceeded; the envelope overhead is excluded from this count. 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 |