Read local file
read_fileRead local file contents from a remote MCP client. Supports paging large files with offset and length for controlled access.
Instructions
Read a local file through the Desktop Commander execution core. Large files should be paged with offset and length.
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": "read_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| length | No | ||
| offset | No |