Write project file
update_project_fileCreate or replace a document in one of the user's letX projects. If the path exists its content is replaced and the previous version is kept in letX's history, so the change can be undone; if it does not exist the file is created. Use when the user asks to change or add a file in a project. Docs: https://letx.app/mcp/
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": {
"project_id": "<project_id>",
"path": "<path>",
"content": "<content>"
},
"name": "update_project_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | document path, e.g. main.tex or chapters/intro.tex; created if it doesn't exist | |
| content | Yes | the FULL new content of the document (it replaces the current content) | |
| project_id | Yes | the project's id |