analyze_code
Run read-only code analysis tasks using external CLI agents. Specify a provider, repository path, and task description to get results.
Instructions
Deprecated compatibility wrapper around delegate_tasks for one read-only analysis job. Prefer delegate_tasks + job_result.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | Yes | Concrete read-only code analysis task for the external agent. | |
| files | No | Optional repo-relative or absolute file paths to focus on. Absolute paths must stay under repo_path. | |
| model | No | ||
| provider | Yes | External agent CLI provider. | |
| repo_path | Yes | Absolute path to the repository or workspace to analyze. | |
| timeout_sec | No | Timeout in seconds. Defaults to 600; capped at 1800. | |
| extra_context | No | ||
| include_stderr | No | Include stderr in the returned JSON payload. Defaults to true. | |
| max_output_chars | No | Maximum returned output characters. Defaults to 30000; capped at 100000. |