github_code_scanning_list_alert_instances
Retrieve all instances of a specific code scanning alert in a repository to identify affected locations.
Instructions
List instances of a code scanning alert
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": {
"owner": "<owner>",
"repo": "<repo>",
"alert_number": "<alert_number>"
},
"name": "github_code_scanning_list_alert_instances"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pr | No | The number of the pull request for the results you want to list. | |
| ref | No | The Git reference for the results you want to list. The `ref` for a branch can be formatted either as `refs/heads/<branch name>` or simply `<branch name>`. To reference a pull request use `refs/pull/<number>/merge`. | |
| page | No | The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." | |
| repo | Yes | repo | |
| owner | Yes | owner | |
| per_page | No | The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)." | |
| alert_number | Yes | alert_number |