new_file
Creates a new file at the specified path, automatically generates parent directories if missing, and selects the first line for immediate editing using the editor-mcp server API.
Instructions
Creates a new file.
After creating new file, the first line is automatically selected for editing. Automatically creates parent directories if they don't exist.
Args: filepath (str): Path of the new file Returns: dict: Status message with selection info
Input Schema
Name | Required | Description | Default |
---|---|---|---|
filepath | Yes |
Input Schema (JSON Schema)
{
"properties": {
"filepath": {
"title": "Filepath",
"type": "string"
}
},
"required": [
"filepath"
],
"type": "object"
}