fs_overwrite
Overwrite an existing file while sending the original to trash for recovery, ensuring safe and reversible content replacement.
Instructions
Overwrite an existing file — backs the original up to trash first.
Unlike fs_write this replaces existing content but always
keeps a recoverable copy in ~/.praxis/trash/.
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": "fs_overwrite"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||