write_text_file
Create or overwrite a text file with specified content, requiring explicit overwrite permission for existing files, and supporting custom encoding and parent directory creation.
Instructions
Create or overwrite a text file. This modifies the computer. Existing files require overwrite=true.
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_text_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes | ||
| encoding | No | utf-8 | |
| overwrite | No | ||
| create_parents | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||