Write File
write_fileCreates or updates a plain UTF-8 text file at a given path with specified content, with an optional overwrite flag. Use it for text files only, not binary formats.
Instructions
Create or update a plain UTF-8 text file. For binary files (Excel, Word, PPTX, PDF, Images, Zip, SQLite), use their specific creation tools.
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 | ||
| overwrite | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||