find_dependency_path
Finds the shortest dependency path between two project files and returns the dependency chain or a message if no path exists.
Instructions
Finds the shortest dependency path between two files.
Args:
from_file: Source file path (relative to project root)
to_file: Target file path (relative to project root)
max_depth: Maximum search depth (default 10)
Returns:
Dependency chain from source to target, or message if no path found
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": {
"from_file": "<from_file>",
"to_file": "<to_file>"
},
"name": "find_dependency_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_file | Yes | ||
| from_file | Yes | ||
| max_depth | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |