extract_function_definition
Extract the complete definition of a specified function or method from a file, including comments and decorators, using the Local Project Sync MCP server for efficient code analysis.
Instructions
提取指定函数/方法的完整定义,包括注释和装饰器
Input Schema
Name | Required | Description | Default |
---|---|---|---|
filePath | Yes | 带前缀的完整文件路径, e.g., '[backend/src]/main.ts' | |
functionName | Yes | 函数/方法名 | |
includeComments | No | 是否包含上方的注释 | |
includeDecorators | No | 是否包含装饰器 |