sonarqube_issue_source
Show source lines around a specific component line reported by sonarqube_issues so you can inspect the code context of a finding.
Instructions
Show the source lines around a line of a component, as returned by sonarqube_issues (component and line)
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": {
"component": "<component>",
"line": "<line>"
},
"name": "sonarqube_issue_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | Line to centre the snippet on | |
| component | Yes | Component key, e.g. my-project:src/index.ts | |
| contextLines | No | Lines of context either side (default 5) |