Canonical Definition
{
"function": {
"description": "Create a new file or completely overwrite an existing file on the local file system. Use this to generate code, config files, or save data.",
"name": "write_file",
"parameters": {
"properties": {
"content": {
"description": "The full text content to write into the file.",
"type": "string"
},
"path": {
"description": "The absolute or relative path to the file to create or overwrite.",
"type": "string"
}
},
"required": [
"path",
"content"
],
"type": "object"
}
},
"type": "function"
}