Solidity security audit
security_auditAudit Solidity contracts to identify high, medium, and low severity issues, and optionally generate a PDF report.
Instructions
Audit a Solidity contract with kritisi and return high/medium/low findings. Optionally writes a PDF report. API keys are read from the environment or the kritisi user config, never from tool arguments.
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": {
"path": "<path>"
},
"name": "security_audit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to a .sol file | |
| provider | No | AI provider (default: openrouter) | openrouter |
| outputPdf | No | Optional PDF output path; no file is written when omitted | |
| overwrite | No | Allow replacing an existing PDF report | |
| includeReport | No | Include the full findings JSON in the response |