Create Files
createWrite whole text files—new, overwriting, or appended—and create empty directories including missing parent folders. Use it when you have full content or need folders; for partial edits use edit, replace_text, or patch instead.
Instructions
Write whole text files (new, overwrite, or append) and create empty directories, with missing parents. Use when you have full content or need folders. Do not use it for partial edits; use edit, replace_text, or patch instead, and move to copy or rename. Whole-file writes are atomic (temp file, then rename); appends are not. An existing file is replaced only with overwrite: true or after one user confirmation for the batch; nothing is written before the answer. Declined entries fail with CANCELLED; skipped ones land in skipped. Entries fail alone; the call errors only when all fail. Returns files (path, size, lineCount, mimeType, kind, resourceUri, created, modified), directories, failures, skipped, and an undo id for undo (30 min), or undoUnavailable.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Files to write. Give files, directories, or both. Combined content per call is at most FS_MAX_FILE_SIZE (default 10 MiB). | |
| directories | No | Empty directories, created recursively; an existing directory succeeds; a path also listed in files is rejected. |