get_type_definition
Extract the complete definition of a Python type, including members and source code, from a specified file. Supports classes, TypeAlias, Enum, Protocol, TypedDict, and NamedTuple.
Instructions
Extract a class, TypeAlias, Enum, Protocol, TypedDict or NamedTuple definition with its members and source.
Args: path: Path to a .py file. name: Type name.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |