Writefile
writeFileWrite text to a local file in the current working directory, with options to append content and control trailing newline.
Instructions
write text into a local file in the current directory
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": {
"file": "<file>",
"text": "<text>"
},
"name": "writeFile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | filename. only a local filename or dir/filename is allowed | |
| text | Yes | text to write | |
| append | No | append to the file, default false | |
| newline | No | terminate end of text with newline, default true |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |