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