create_text_file
Create a new text file at an absolute path with specified content. Ensures the file does not already exist to prevent overwriting.
Instructions
Create a new text file with given content. The file must not exist already.
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_path": "<file_path>",
"contents": "<contents>"
},
"name": "create_text_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| contents | Yes | Content to write to the file | |
| encoding | No | Text encoding (default: 'utf-8') | utf-8 |
| file_path | Yes | Path to the text file. File path must be absolute. |