scan_patterns
Scan JS/TS code for 26 security and performance patterns
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": {
"code": "<code>"
},
"name": "scan_patterns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | JS/TS code snippet to scan (max 50,000 chars) | |
| language | No | Language hint: javascript, typescript, jsx, tsx, etc. |