Skip to main content
Glama

new_file

Create and prepare a new file for editing by specifying the filepath. Automatically generates parent directories if missing and selects the first line for immediate editing.

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

NameRequiredDescriptionDefault
filepathYes

Input Schema (JSON Schema)

{ "properties": { "filepath": { "title": "Filepath", "type": "string" } }, "required": [ "filepath" ], "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/danielpodrazka/editor-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server