22 lines
670 B
Plaintext
22 lines
670 B
Plaintext
{
|
|
"description": "Create or overwrite a file. Produces a unified diff.",
|
|
"prompt": "## file_write\n\nCreate or overwrite a file. Produces a unified diff.\n\n**Args**: `[path, content]`\n\n```\nfile_write(path=\"/abs/path\", 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"
|
|
}
|
|
}
|
|
}
|
|
}
|