n8n
Version:
n8n Workflow Automation Tool
27 lines (26 loc) • 1.12 kB
TypeScript
import type { ExecutionRepository, User } from '@n8n/db';
import z from 'zod';
import type { ToolDefinition } from '../mcp.types';
import type { Telemetry } from '../../../telemetry';
import type { WorkflowFinderService } from '../../../workflows/workflow-finder.service';
declare const inputSchema: z.ZodObject<{
workflowId: z.ZodString;
executionId: z.ZodString;
includeData: z.ZodOptional<z.ZodBoolean>;
nodeNames: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
truncateData: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
executionId: string;
workflowId: string;
includeData?: boolean | undefined;
nodeNames?: string[] | undefined;
truncateData?: number | undefined;
}, {
executionId: string;
workflowId: string;
includeData?: boolean | undefined;
nodeNames?: string[] | undefined;
truncateData?: number | undefined;
}>;
export declare const createGetExecutionTool: (user: User, executionRepository: ExecutionRepository, workflowFinderService: WorkflowFinderService, telemetry: Telemetry) => ToolDefinition<typeof inputSchema.shape>;
export {};