Write Local Working Copy File
litewrite_local_writeWrite or overwrite a file in a project's local mirror without network calls. Changes stay local until you push them to the server.
Instructions
Write or overwrite a file in the local mirror of a project (no network call).
Changes are NOT uploaded to Litewrite until you run litewrite_push.
Args:
projectId (string, required): The project id.
filePath (string, required): Relative path in the local copy.
content (string, required): The full text content to write.
Text files edited/created here will be uploaded by litewrite_push.
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>",
"content": "<content>"
},
"name": "litewrite_local_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The full new content | |
| filePath | Yes | Relative path in the local copy | |
| projectId | Yes | The Litewrite project id |