find_related
Find semantically similar code chunks by providing a file path and line number from a search result. Use after locating a promising code area to discover related implementations.
Instructions
Find code chunks semantically similar to a known file and one-based line.
Use this after search returns a promising location. Pass the file path exactly
as it appears in a result and a line inside that chunk. Results include
formatted text for context injection and structured fields.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Repository-relative file path exactly as shown in a search result. | |
| limit | No | Maximum number of related chunks to return. | |
| line | Yes | One-based line number inside the known chunk. | |
| profile | No | Saved profile to use for source defaults. | |
| source | No | Git URL or local path. Omit only when the server has a default source. |