24 lines
878 B
Plaintext
24 lines
878 B
Plaintext
{
|
|
"description": "Create or overwrite a file. Use for new files or intentional full-file replacement; use file_edit for targeted changes.",
|
|
"outputFormat": "diff",
|
|
"prompt": "## file_write\n\nCreate or overwrite a file. Use for new files or intentional full-file replacement. Use `file_edit` for targeted changes.\n\n**Args**: `path`, `content` (required)\n\n```\nfile_write(path=\"<ABSOLUTE_PATH_FROM_PWD>\", content=\"file content here\")\n```\n\n**Constraints**: Absolute paths only. Parent directory must exist.",
|
|
"args": {
|
|
"type": "object",
|
|
"required": [
|
|
"path",
|
|
"content"
|
|
],
|
|
"properties": {
|
|
"path": {
|
|
"type": "string",
|
|
"description": "Absolute path to create or overwrite"
|
|
},
|
|
"content": {
|
|
"type": "string",
|
|
"description": "File content to write"
|
|
}
|
|
}
|
|
},
|
|
"scope": "write"
|
|
}
|