find_function
Locate function or method definitions in Python or JS/JSX files using AST parsers. Input the function name to retrieve lines, start_line, and end_line for efficient code navigation.
Instructions
Find a function or method definition in a Python or JS/JSX file. Uses AST parsers.
Args: function_name (str): Name of the function or method to find
Returns: dict: function lines with their line numbers, start_line, and end_line
Input Schema
Name | Required | Description | Default |
---|---|---|---|
function_name | Yes |