get-file
Extract specific file content from a codebase by specifying its path and optional line range using this tool, enabling precise code analysis and workflow integration on the CodeAnalysis MCP Server.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
endLine | No | Ending line number (1-based) | |
path | Yes | Relative path to the file | |
startLine | No | Starting line number (1-based) |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"endLine": {
"description": "Ending line number (1-based)",
"type": "number"
},
"path": {
"description": "Relative path to the file",
"type": "string"
},
"startLine": {
"description": "Starting line number (1-based)",
"type": "number"
}
},
"required": [
"path"
],
"type": "object"
}