scan_dockerfile_file
Audit Dockerfile security by scanning raw content with Checkov, returning structured findings with check IDs, line ranges, and code snippets to identify misconfigurations.
Instructions
Scan Dockerfile content for security misconfigurations using Checkov and return structured findings, in the same shape as scan_terraform_file (check ID, title, resource, line range, code snippet). Use this whenever the user asks to review, audit, or check the security of a Dockerfile.
Args: file_content: the raw text of a Dockerfile filename: original filename, used only for a friendlier label in output
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": {
"file_content": "<file_content>"
},
"name": "scan_dockerfile_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | No | Dockerfile | |
| file_content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||