get_related_symbols
Find symbols commonly used together with a given symbol to understand code context and common usage patterns around it.
Instructions
Find symbols that are often used together with the given symbol.
Useful for understanding the context and common patterns around a symbol.
Args:
symbol: The symbol to find related symbols for
directory: Path to the codebase directory
Returns:
List of related symbols with relationship types
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": {
"symbol": "<symbol>",
"directory": "<directory>"
},
"name": "get_related_symbols"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | ||
| directory | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |