n8n-mcp-server
Version:
Model Context Protocol (MCP) server for n8n workflow automation
26 lines (25 loc) • 742 B
TypeScript
/**
* List Executions Tool
*
* This tool retrieves a list of workflow executions from n8n.
*/
import { BaseExecutionToolHandler } from './base-handler.js';
import { ToolCallResult, ToolDefinition } from '../../types/index.js';
/**
* Handler for the list_executions tool
*/
export declare class ListExecutionsHandler extends BaseExecutionToolHandler {
/**
* Execute the tool
*
* @param args Tool arguments (workflowId, status, limit, lastId)
* @returns List of executions
*/
execute(args: Record<string, any>): Promise<ToolCallResult>;
}
/**
* Get tool definition for the list_executions tool
*
* @returns Tool definition
*/
export declare function getListExecutionsToolDefinition(): ToolDefinition;