# Read File

> Read File (Deprecated)

- Skill: `xiaobai1017/read-file` (Agent Skill)
- Install (CLI): `npx skillmds@latest add xiaobai1017/read-file`
- Raw SKILL.md: https://api.skillmd.com/api/skills/xiaobai1017/read-file/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: xiaobai1017 (https://skillmd.com/u/xiaobai1017)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/xiaobai1017/read-file

---


# Read File (Deprecated)

Read the complete contents of a file as text. DEPRECATED: Use read_text_file instead.

## Purpose

This skill provides access to the MCP tool `read_file`. It allows you to read the complete contents of a file as text. deprecated: use read_text_file instead..

## Parameters

The tool accepts the following parameters:

### `path`
**Required**
- **Type**: `string`
- **Description**: No description provided

### `tail`
*Optional*
- **Type**: `number`
- **Description**: If provided, returns only the last N lines of the file

### `head`
*Optional*
- **Type**: `number`
- **Description**: If provided, returns only the first N lines of the file


## Usage Instructions

To use this tool:

1. **Prepare the parameters** according to the schema above
2. **Invoke the MCP tool** `read_file` with the prepared parameters
3. **Process the result** returned by the tool

## Example

```json
{
  "path": "example_value",
  "tail": 123,
  "head": 123
}
```

## Expected Output

The tool returns data with the following structure:

- **content** (`string`): No description provided


## Notes

- This skill requires an active MCP connection to the server providing the `read_file` tool
- Ensure the MCP server is properly configured and running before attempting to use this tool
- Review the parameter requirements carefully to avoid errors
