Skip to main content
Glama
get-task.ts778 B
import { createAction, Property } from '@activepieces/pieces-framework'; import { fragmentAuth } from '../common/auth'; import { fragmentClient } from '../common/client'; import { HttpMethod } from '@activepieces/pieces-common'; export const getTask = createAction({ auth: fragmentAuth, name: 'get_task', displayName: 'Get Task', description: 'Retrieves details of a specific task.', props: { task_uid: Property.ShortText({ displayName: 'Task UID', description: 'The unique identifier of the task to retrieve', required: true, }), }, async run(context) { const response = await fragmentClient.makeRequest( HttpMethod.GET, `/tasks/${context.propsValue.task_uid}`, context.auth ); 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