read_file
Retrieve complete file contents to view, inspect, or check any file before modification. Use this tool to read source code, configurations, and data files.
Instructions
READ AND RETRIEVE complete file content. Primary tool for reading files - use whenever you need to see what's inside a file. Use for viewing, inspecting, checking file contents before modification. Keywords: read, view, show, display, get content, inspect file, open file. / 读取并获取完整文件内容。这是读取文件的主要工具。关键词:读取、查看、显示、获取内容、检查文件。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The file path to read. Can be absolute or relative to the current working directory. The file must exist. Examples: 'src/main.go' (read source code), 'package.json' (read configuration), 'README.md' (read documentation), 'data/input.csv' (read data file). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes |