Read file
file_readReads UTF-8 text files or previews PDF text from allowed local paths, enabling MCP clients to inspect file contents.
Instructions
Read UTF-8 text or a PDF text preview. PDF continuation/images: file_read_pdf.
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>"
},
"name": "file_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes |