Run a static ruleset over a tree
static_analysis_runScans source trees with built-in defensive heuristic rules to return rule-level summaries and findings, with filters for rules, language, directory, and result limit.
Instructions
Run the built-in defensive static ruleset over a source tree and return a rule-level summary plus findings. This is pattern/heuristic analysis, not a Clang/CodeQL/Semgrep invocation.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "static_analysis_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return. | |
| rules | No | Restrict to pattern ids, e.g. ["command-injection"]. | |
| language | No | ||
| directoryPath | No | Directory to scan, relative to the workspace root. | . |