find_related
Find code chunks semantically similar to a given file and line number. Enter the exact file path and line from search results to retrieve related snippets with context.
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. |