Skip to main content
Glama

Local Project Sync

by Cytrogen

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

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" }

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