Skip to main content
Glama

Local Project Sync

by Cytrogen

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

NameRequiredDescriptionDefault
filePathYes带前缀的完整文件路径, e.g., '[backend/src]/main.ts'
functionNameYes函数/方法名
includeCommentsNo是否包含上方的注释
includeDecoratorsNo是否包含装饰器

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "filePath": { "description": "带前缀的完整文件路径, e.g., '[backend/src]/main.ts'", "type": "string" }, "functionName": { "description": "函数/方法名", "type": "string" }, "includeComments": { "default": true, "description": "是否包含上方的注释", "type": "boolean" }, "includeDecorators": { "default": true, "description": "是否包含装饰器", "type": "boolean" } }, "required": [ "filePath", "functionName" ], "type": "object" }

Other Tools from Local Project Sync

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Cytrogen/local-project-sync'

If you have feedback or need assistance with the MCP directory API, please join our Discord server