related_code
Returns symbols related to a given symbol by co-location, shared imports, or name similarity, helping discover nearby code and understand its context.
Instructions
Returns symbols related to a given symbol by co-location, shared imports, or name similarity. Useful for discovering nearby code and understanding context.
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_id": "<symbol_id>"
},
"name": "related_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol_id | Yes | Symbol identifier (from search_symbols or get_file_outline results) | |
| max_results | No | Maximum results to return |