AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import { HttpMethod } from '@activepieces/pieces-common';
import { createAction, Property } from '@activepieces/pieces-framework';
import { skyvernAuth } from '../common/auth';
import { skyvernApiCall } from '../common/client';
export const getRunAction = createAction({
auth: skyvernAuth,
name: 'get-run',
classification: 'READ',
displayName: 'Get Workflow/Task Run',
description: 'Retrieves a workflow or task run by ID.',
audience: 'both',
aiMetadata: { description: 'Retrieves the current status and details of a Skyvern workflow or task run by its run ID. Use to poll a run started via Run Agent Task or Run Workflow until it completes and to read its results. Read-only and idempotent.', idempotent: true },
props: {
runId: Property.ShortText({
displayName: 'Workflow/Task Run ID',
required: true,
}),
},
async run(context) {
const { runId } = context.propsValue;
const response = await skyvernApiCall({
apiKey: context.auth.secret_text,
method: HttpMethod.GET,
resourceUri: `/runs/${runId}`,
});
return response;
},
});