find_function
Locate function or method definitions in Python or JS/JSX files. Parses code using AST to return line numbers, start_line, and end_line for accurate 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 |