read_local_file
Read local PDF and Office documents, converting them into AI-optimized markdown for use in MCP clients like Claude Desktop and Claude Code.
Instructions
读取本地文件系统中的PDF、Office文档
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": {
"file_path": "<file_path>"
},
"name": "read_local_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_size | No | 单个文件大小限制(MB),默认20MB | |
| file_path | Yes | 本地文件绝对路径,必须使用完整的绝对路径(如/Users/user/document.pdf)。支持格式:PDF、Office文档(doc/docx/xls/xlsx/ppt/pptx)、OpenDocument(odt/ods/odp)。不支持图片 |