analyze_dataflow
Traces user input through JavaScript/TypeScript code to dangerous sinks such as SQL queries, eval, file operations, and redirects, detecting injection vulnerabilities that regex rules miss.
Instructions
Track user input (request body, URL params, form data) flowing into dangerous sinks (SQL queries, eval, file operations, redirects). Detects injection vulnerabilities that regex rules miss by following variable assignments through code.
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>",
"language": "<language>"
},
"name": "analyze_dataflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | Code to analyze for tainted data flows | |
| format | No | Output format | markdown |
| language | Yes | Language (JS/TS only) |