Read file
read_fileRead text file contents on local or remote Linux hosts up to a safe size limit to troubleshoot system configurations, logs, and other diagnostics.
Instructions
Read the contents of a text file up to a safe size limit.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>",
"host": "<host>"
},
"name": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | System to run on: 'localhost' for the system the MCP server runs on, or a remote host to connect to via SSH | |
| path | Yes | Absolute path to the file to read |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |