analyze_cross_file_dataflow
Track user input across module boundaries to detect injection vulnerabilities spanning multiple files. Pass file contents or a project directory for cross-file security analysis.
Instructions
Track user input flowing across module boundaries β detects injection vulnerabilities spanning multiple files. Pass files array with file contents. For single-file analysis, use analyze_dataflow instead. Example: analyze_cross_file_dataflow({files: [{path: 'src/api.ts', content: '...'}, {path: 'src/db.ts', content: '...'}]})
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": "analyze_cross_file_dataflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Project directory path. When provided, auto-discovers all JS/TS files β no need to pass file contents manually. | |
| files | No | List of files to analyze (ignored when path is provided) | |
| format | No | Output format | markdown |