get_type_definition
Get the full source definition of any type—interface, type alias, class, or enum—by entering the type name and path to the TS/JS file.
Instructions
Extracts the full definition of any type (interface, type alias, class, enum) by name
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>",
"name": "<name>"
},
"name": "get_type_definition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the type to extract | |
| path | Yes | Absolute path to the TS/JS file |