create_file
Create a new file at a specified path, with optional initial content, ability to overwrite existing files, and automatic creation of parent directories.
Instructions
Create a new file with optional content
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>"
},
"name": "create_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the new file | |
| content | No | Initial content for the file | |
| overwrite | No | Overwrite if file exists | |
| createDirs | No | Create parent directories if they don't exist |