run_malware_scan
Run a ClamAV malware scan on a site's container.
Scans the web root (or specified path) for malware, viruses, and trojans. ClamAV is installed automatically if not present. Excludes node_modules, vendor, .git, and cache directories.
May take up to 5 minutes for large sites.
Requires: API key with write scope.
Args: slug: Site identifier path: Directory to scan (default: /var/www/html)
Returns: {"infected_files": [{"path": "/var/www/html/shell.php", "threat": "Php.Malware.Agent"}], "scanned_count": 1234, "infected_count": 1, "scan_time_s": 45.2}
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": {
"slug": "<slug>"
},
"name": "run_malware_scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | ||
| slug | Yes |