write_file
Replace a file's full content in a CSTCloud LaTeX project. Read the file first, then write back to avoid edit conflicts.
Instructions
Write (replace) the content of a document in a CSTCloud LaTeX project. This replaces the entire file content with the provided text. WARNING: If another user is editing the same file simultaneously, changes may conflict. Use read_file first to get the current content, then modify and write back.
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>",
"file_id": "<file_id>",
"content": "<content>"
},
"name": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The new full content of the file | |
| file_id | Yes | The file/document ID (from get_project_files) | |
| project_id | Yes | The project ID |