write_file
Write or append UTF-8 text to files within the workspace. Automatically creates parent directories, with overwrite or append mode.
Instructions
Write or append UTF-8 text under the workspace. Mode: overwrite or append. Creates parent dirs. Do not use without reading first unless you are creating a new file or already hold exact contents.
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": {
"path": "<path>",
"content": "<content>"
},
"name": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | overwrite | |
| path | Yes | ||
| content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |