sonar_get_file_issues
Retrieve open SonarQube issues for a specific source file, showing line number, rule, severity, and fix message to help resolve code quality problems.
Instructions
Get open SonarQube issues for a specific source file. Use this when the user asks about issues in a particular file they are editing or viewing. Returns the list of issues with line number, rule, severity, and fix message.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filePath": "<filePath>"
},
"name": "sonar_get_file_issues"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | File path relative to repo root, e.g. 'apps/web/src/og-assist/tools/config.ts' | |
| pullRequest | No | Optional PR number to scope to new code only. Omit to get all issues on main. |