get_function_body
Extract the full body of any function or method from TypeScript or JavaScript files. Supports Class.method syntax for precise targeting.
Instructions
Extracts the full body of a specific function or method. Supports Class.method syntax.
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_function_body"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Function name (e.g., 'setup' or 'MyClass.method') | |
| path | Yes | Absolute path to the TS/JS file |