Skip to main content
Glama

Local Project Sync

by Cytrogen

read_file_section

Extract and display a specified range of lines from a file using file path and line numbers. Optionally includes line numbers for clarity, enabling precise file section retrieval.

Instructions

读取文件的指定行范围

Input Schema

NameRequiredDescriptionDefault
endLineYes结束行号(包含)
filePathYes带前缀的完整文件路径, e.g., '[backend/src]/main.ts'
showLineNumbersNo是否显示行号
startLineYes起始行号(从1开始)

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "endLine": { "description": "结束行号(包含)", "type": "number" }, "filePath": { "description": "带前缀的完整文件路径, e.g., '[backend/src]/main.ts'", "type": "string" }, "showLineNumbers": { "default": true, "description": "是否显示行号", "type": "boolean" }, "startLine": { "description": "起始行号(从1开始)", "type": "number" } }, "required": [ "filePath", "startLine", "endLine" ], "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