search_hotspots
List security hotspots in a project, filtering by file, branch, or pull request, to identify code requiring manual review.
Instructions
List hotspots for a project with optional file, branch, or PR filters; returns paging + summaries.
Security hotspots are security-sensitive pieces of code that need manual review. Returns a list of hotspots with their status, component, and vulnerability probability.
Hotspot status values:
TO_REVIEW: Needs review
REVIEWED: Has been reviewed (with resolution FIXED, SAFE, or ACKNOWLEDGED)
Example: search_hotspots(projectKey="my-project", branch="main", files="src/auth.java")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| p | No | Page number (1-indexed) | |
| ps | No | Page size (max 500) | |
| files | No | Comma-separated list of file paths to filter by (e.g., 'src/main.java,src/util.java') | |
| branch | No | Branch name to search (e.g., 'main', 'develop') | |
| projectKey | Yes | Project key to search hotspots in (e.g., 'my-project') | |
| pullRequest | No | Pull request ID to search (e.g., '123') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||