definition
Jump to where a Python symbol is declared using its file path, line, and column. Resolves targets through type inference, so typed parameters and attributes work too.
Instructions
Go to the definition of the symbol at a position.
line and column are 1-indexed. column is a UTF-16 character offset
on the line (not a visual/display column): a leading tab counts as one
character.
Resolves through ty's type inference, so this works even when the call
site only has a typed parameter/attribute (e.g. services.some_method()
where services: AppServices is a constructor argument), not just
direct references to a name in scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | ||
| column | Yes | ||
| file_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |