n8n-mcp-server
Version:
Model Context Protocol (MCP) server for n8n workflow automation
26 lines (25 loc) • 688 B
TypeScript
/**
* List Workflows Tool
*
* This tool retrieves a list of workflows from n8n.
*/
import { BaseWorkflowToolHandler } from './base-handler.js';
import { ToolCallResult, ToolDefinition } from '../../types/index.js';
/**
* Handler for the list_workflows tool
*/
export declare class ListWorkflowsHandler extends BaseWorkflowToolHandler {
/**
* Execute the tool
*
* @param args Tool arguments
* @returns List of workflows
*/
execute(args: Record<string, any>): Promise<ToolCallResult>;
}
/**
* Get tool definition for the list_workflows tool
*
* @returns Tool definition
*/
export declare function getListWorkflowsToolDefinition(): ToolDefinition;