atomic-writer
Write file content securely with automatic backups and path validation. Prevents accidental overwrites and ensures safe file operations.
Instructions
Writes file content with automatic backup creation and path safety validation.
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": "atomic-writer"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Filesystem path to write, relative or absolute to the project root. | |
| content | Yes | Content to persist to the target file. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| bytesWritten | Yes | ||
| backupCreated | Yes |