Write File
write_fileOverwrite a file with complete new content and automatically save its original version in memory the first time it is edited so changes can be reverted.
Instructions
Sobreescribe un archivo con contenido nuevo completo (no un diff, el archivo entero). Guarda automaticamente el contenido original en memoria la primera vez que se toca ese archivo, para poder revertir.
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 |
|---|---|---|---|
| path | Yes | ||
| content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |