getHotspot
getHotspotRetrieve a security hotspot’s review details, rule guidance, code locations, data flows, and changelog from SonarQube to analyze and fix the flagged issue.
Instructions
Get one Security Hotspot. Returns review details, rule guidance, locations, flows, and changelog.
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": {
"hotspotKey": "<hotspotKey>"
},
"name": "getHotspot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hotspotKey | Yes | Hotspot key |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule | No | ||
| flows | No | Data-flow paths showing how user input reaches the risky code. | |
| hotspot | No | ||
| changelog | No | Full change history of the hotspot (reviews, reassignments, etc.). | |
| textRange | No | Precise text range in the source file; null when the hotspot spans the whole file. |