find_definition_at
Identify the code definition at any file location and get an explanation of that symbol, using just file path and line number.
Instructions
Find the code node whose definition spans a given file location.
Reverse-resolves a (file, line) pair to a graph node ID and returns the
same Markdown report as explain(). Useful when reading a file in an IDE
and wanting to understand the symbol at a specific line without constructing
a node ID manually.
Matches the innermost (most-specific) function, method, type, extension,
type alias, or enum whose lineno ≤ line ≤ end_lineno. Falls back to
the module node when no narrower match exists.
:param file: Module path as stored in the graph, e.g. Sources/Networking/Client.swift.
Leading ./ is stripped automatically.
:param line: Line number (1-indexed) within the file.
:return: Markdown explanation from explain(), or an informative error
message if no node spans that location.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | ||
| line | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |