readFile
Extract specific file content by specifying file path, starting line offset, and number of lines to read using the MCP server for streamlined file access.
Instructions
Read a file from the local filesystem
Input Schema
Name | Required | Description | Default |
---|---|---|---|
file_path | Yes | The absolute path to the file to read | |
limit | No | The number of lines to read | |
offset | No | The line number to start reading from |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"file_path": {
"description": "The absolute path to the file to read",
"type": "string"
},
"limit": {
"description": "The number of lines to read",
"type": "number"
},
"offset": {
"description": "The line number to start reading from",
"type": "number"
}
},
"required": [
"file_path"
],
"type": "object"
}