trace_feature_implementation
Map all code involved in a feature from UI to data layer to understand its components, trace dependencies, and locate affected files before modifications.
Instructions
Map all code involved in implementing a specific feature from UI to data layer.
Use this tool when you need to:
Understand all components involved in a feature before modifying it
Map feature implementation across multiple layers (UI, business logic, data)
Find all related code that might be affected by feature changes
Understand how a feature is structured and organized
Perfect for feature modification, debugging feature issues, or understanding complex feature implementations that span multiple modules.
Args: repo_path: Repository path (absolute) working_directory: Working directory (absolute path) feature_keywords: List of keywords that identify the feature (e.g., ["login", "authenticate"]) file_categories: Dictionary mapping category names to path patterns for file organization. Format: {"category_name": ["pattern1", "pattern2", ...]}
Example:
{
"ui_frontend": ["view", "template", "component", "ui", "frontend"],
"api_controllers": ["api", "controller", "endpoint", "route"],
"business_logic": ["service", "business", "logic", "core"],
"data_models": ["model", "entity", "schema", "db"],
"utilities": ["util", "helper", "common"],
"tests": ["test", "spec"],
"config": ["config", "setting", "env"]
}
Files are categorized by checking if any pattern appears in the file path.
Use descriptive category names that match your project structure.
include_tests: Whether to include test files in the analysis
include_config: Whether to include configuration files
trace_depth: How deep to trace dependenciesReturns: Complete feature implementation map with all involved components by layer
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>",
"working_directory": "<working_directory>",
"feature_keywords": "<feature_keywords>",
"file_categories": "<file_categories>"
},
"name": "trace_feature_implementation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo_path | Yes | ||
| trace_depth | No | ||
| include_tests | No | ||
| include_config | No | ||
| file_categories | Yes | ||
| feature_keywords | Yes | ||
| working_directory | Yes |