25 lines
1.5 KiB
Plaintext
25 lines
1.5 KiB
Plaintext
{
|
|
"description": "Create a new file or intentionally replace an entire existing file. Use when writing a new documentation page, creating a new Markdown note, generating a file from scratch, adding a new architecture document, or performing a deliberate full-file rewrite. Do not use for targeted updates, edits, revisions, or additions to existing documentation; use file_edit instead.",
|
|
"keywords": ["create a new file", "create a new document", "create new documentation", "write a new documentation page", "write documentation from scratch", "create a new Markdown file", "create a new architecture document", "generate a new document", "start a new file", "replace an entire existing file", "rewrite an entire file", "overwrite the complete file", "full-file replacement"],
|
|
"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"
|
|
}
|