trace_dependency_impact
Trace dependency chains and analyze refactoring impact for a module to identify affected code before making changes.
Instructions
Trace dependency chains and analyze refactoring impact for a module. Combines dependency tracing with impact analysis.
Args: repo_path: Repository path target_module: Module to analyze (e.g., 'src.auth.middleware') working_directory: Working directory (absolute path) analysis_type: "dependency" for chain tracing, "refactoring" for impact analysis, "both" for combined max_depth: Maximum depth to trace dependencies change_type: For refactoring - "modify", "split", "merge", or "remove"
Returns: Dependency chains and/or refactoring impact analysis
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": {
"repo_path": "<repo_path>",
"target_module": "<target_module>",
"working_directory": "<working_directory>"
},
"name": "trace_dependency_impact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_depth | No | ||
| repo_path | Yes | ||
| change_type | No | modify | |
| analysis_type | No | dependency | |
| target_module | Yes | ||
| working_directory | Yes |