Skip to main content
Glama

cancel

Cancel the current operation in the editor-mcp server to stop ongoing file actions or processes.

Instructions

Cancel action

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The 'cancel' tool handler function. Discards any pending modifications (clears pending_modified_lines and pending_diff) from a previous 'overwrite' operation. Returns success message or error if no pending changes.
    async def cancel() -> Dict[str, Any]: """ Cancel action """ if self.pending_modified_lines is None or self.pending_diff is None: return {"error": "No pending changes to discard. Use overwrite first."} self.pending_modified_lines = None self.pending_diff = None return { "status": "success", "message": "Action cancelled.", }

Latest Blog Posts

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