Analyze source for a hypothesis
source_vulnerability_analyzeAnalyzes a single source file using static pattern matching to identify potential vulnerabilities, optionally focusing on a recorded hypothesis's vulnerability class; findings are heuristic and labelled.
Instructions
Static, pattern-based analysis of a single source file. Optionally narrows to the vulnerability class of a previously recorded hypothesis. Findings are heuristic and clearly labelled.
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": {
"filePath": "<filePath>"
},
"name": "source_vulnerability_analyze"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Path to the artifact, relative to the authorized workspace root. | |
| maxBytes | No | Maximum bytes to read from the artifact. | |
| hypothesisId | No | Optional hypothesis id to focus the analysis on its vulnerability class. |