overwriteFileTool
Overwrite a file in FileMCP's AgentFiles directory by providing the file name and new content, replacing existing data safely.
Instructions
Overwrites a file with the specified name and content under 'AgentFiles'.
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": {
"fileName": "<fileName>",
"content": "<content>"
},
"name": "overwriteFileTool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | The content to be written to the file. | |
| fileName | Yes | The name of the file to be overwritten. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The result of the file overwrite operation, indicating success or failure. |