diff --git a/x-pack/platform/packages/shared/agent-builder/agent-builder-genai-utils/tools/utils/workflows/get_execution_state.ts b/x-pack/platform/packages/shared/agent-builder/agent-builder-genai-utils/tools/utils/workflows/get_execution_state.ts index 636b3b2653d4c..86788ad80e122 100644 --- a/x-pack/platform/packages/shared/agent-builder/agent-builder-genai-utils/tools/utils/workflows/get_execution_state.ts +++ b/x-pack/platform/packages/shared/agent-builder/agent-builder-genai-utils/tools/utils/workflows/get_execution_state.ts @@ -36,7 +36,9 @@ export const getExecutionState = async ({ spaceId: string; workflowApi: WorkflowApi; }): Promise => { - const execution = await workflowApi.getWorkflowExecution(executionId, spaceId); + const execution = await workflowApi.getWorkflowExecution(executionId, spaceId, { + includeOutput: true, + }); if (!execution) { return null; }