createFile
Create a file or directory in your workspace with optional content, overwrite, and open-after-create.
Instructions
Create file or directory within workspace. Uses VS Code when connected, native fs fallback.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filePath": "<filePath>"
},
"name": "createFile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | No | Initial file content (default: empty) | |
| filePath | Yes | Workspace or absolute path for new file or directory | |
| overwrite | No | Overwrite if file already exists (default: false) | |
| isDirectory | No | Create a directory instead of a file (default: false) | |
| openAfterCreate | No | Open file in editor after creation (default: true) |