Skip to main content
Glama

Local Project Sync

by Cytrogen

read_file_section

Extracts specific line ranges from a file in local repositories, enabling targeted code analysis without manual uploads. Supports file path, start and end lines, and optional line number display.

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

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