Skip to main content
Glama

interactive_edit_session

Start an interactive editing session to manage complex edits across multiple files with guided instructions.

Instructions

Start an interactive editing session for complex edits

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filesYesList of files to edit
instructionsNoInstructions for the editing session

Implementation Reference

  • Handler logic for 'interactive_edit_session' operation: creates an edit session ID using EditInstanceManager and returns it to the client.
    const sessionId = await this.editInstanceManager.createEditSession(operation.affectedFiles); try { switch (operation.type) { case 'interactive_edit_session': // Return the session ID for the client to use return { sessionId };
  • src/index.ts:306-329 (registration)
    Registers the 'interactive_edit_session' tool with MCP server including schema and annotations.
    mcpServer.registerTool({ name: 'interactive_edit_session', description: 'Start an interactive editing session for complex edits', inputSchema: { type: 'object', properties: { files: { type: 'array', description: 'List of files to edit' }, instructions: { type: 'string', description: 'Instructions for the editing session' } }, required: ['files'] }, annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: false } });
  • Input schema definition for the 'interactive_edit_session' tool.
    inputSchema: { type: 'object', properties: { files: { type: 'array', description: 'List of files to edit' }, instructions: { type: 'string', description: 'Instructions for the editing session' } }, required: ['files']
  • Helper function that creates an interactive edit session by spawning an Edit instance and opening the specified files.
    public async createEditSession(files: string[]): Promise<string> { const sessionId = uuidv4(); const instance = await this.createInstance(sessionId); // Open all files for (const file of files) { await instance.openFile(file); } return sessionId; }

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/mixelpixx/edit-mcp'

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