Write a file
files_writeCreate or overwrite a text file. A large file does NOT have to fit in one call: send the first part with mode 'overwrite', then the rest with mode 'append'.
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": {
"id": "<id>",
"path": "<path>",
"content": "<content>"
},
"name": "files_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| mode | No | 'overwrite' (default) replaces the file. 'append' adds to the end, so a long file can be written across several calls instead of one huge one. | |
| path | Yes | Volume-root relative, e.g. '/src/index.js' (the volume root is /home/container inside the container). | |
| content | Yes | The text to write, as a string. A JSON object is accepted and stored stringified. Required - a call with no content writes nothing. |