repopilot_explain_file
Explain how RepoPilot treats a file: its assigned role, evidence, applicable rules, override severity, and why a rule or signal fires or not without a scan report.
Instructions
Explain how RepoPilot treats one file: the role it assigns (for example test, generated, config, or CLI command handler) and the evidence for it, which rules apply, the ordered overrides that change a rule's severity, and whether the default profile would show the result. Use it to understand a file without a report, or to ask why a rule (rule, optionally one detector signal) would or would not fire there. To explain a finding already in a scan or review, use repopilot_explain_finding; for a review signal, use repopilot_explain_review_signal. Reads local files only and returns JSON.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file to explain. | |
| rule | No | Optional rule ID (see the repopilot://rules resource) to focus the explanation on. | |
| signal | No | Optional detector signal within `rule` to focus on, e.g. "rust.todo" for language.rust.panic-risk. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||