analyze_dataflow
Analyze variable dataflow and security taint paths in a function, with cross-function mode for source-to-sink vulnerability tracing.
Instructions
Analyze variable dataflow and security taint paths in a function.
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": {
"file_path": "<file_path>",
"function_name": "<function_name>"
},
"name": "analyze_dataflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | "flow" (variable dataflow), "taint" (source→sink taint paths), or "cross_taint" (cross-function taint tracing) | flow |
| depth | No | max cross-function depth for cross_taint mode (default 3) | |
| file_path | Yes | path relative to the repo root | |
| function_name | Yes | name of the function to analyze |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||