write_file
Creates a new file or overwrites an existing file with provided text content. Specify the path and content to write data to disk.
Instructions
Create a new file or overwrite an existing file with text 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>",
"content": "<content>"
},
"name": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file to create or overwrite | |
| content | Yes | Text content to write into the file | |
| overwrite | No | Whether to overwrite if file exists (default: true) |