Read Local Working Copy File
litewrite_local_readRead a file from a project's local mirror without a network call. Use projectId and relative filePath to get the on-disk file bytes.
Instructions
Read a file from the local mirror of a project (no network call).
Unlike litewrite_read_file, this reads the on-disk local copy at ~/.litewrite-mcp/.
Args:
projectId (string, required): The project id.
filePath (string, required): Relative path in the local copy.
Returns the raw bytes (framed as text) of the local file.
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": {
"projectId": "<projectId>",
"filePath": "<filePath>"
},
"name": "litewrite_local_read"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | Relative path in the local copy | |
| projectId | Yes | The Litewrite project id |