Skip to main content
Glama

mcp-google-sheets

cancel-run.ts744 B
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 cancelRunAction = createAction({ auth: skyvernAuth, name: 'cancel-run', displayName: 'Cancel Run', description: 'Cancels a workflow or or task run by ID.', 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, method: HttpMethod.POST, resourceUri: `/runs/${runId}/cancel`, }); return response; }, });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/activepieces/activepieces'

If you have feedback or need assistance with the MCP directory API, please join our Discord server