scan_image
Scan a container image for vulnerabilities and secrets using Trivy or Grype. Optionally set minimum severity and output format (markdown or JSON).
Instructions
Scan a container image for vulnerabilities and secrets.
Pulls and analyzes a container image reference (e.g. nginx:1.25,
ghcr.io/org/app@sha256:...) with Trivy or Grype, returning the same
normalized findings as a source scan.
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": {
"image_ref": "<image_ref>"
},
"name": "scan_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_ref | Yes | The image reference to scan. | |
| scanner_name | No | 'trivy' (default) or 'grype'. | trivy |
| min_severity | No | Minimum severity to report (LOW, MEDIUM, HIGH, CRITICAL). | MEDIUM |
| output_format | No | 'markdown' (default) or 'json'. | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |