Skip to main content
Glama

mcp-google-sheets

analyze-video.ts1.02 kB
import { propsValidation } from '@activepieces/pieces-common'; import { createAction } from '@activepieces/pieces-framework'; import { vlmRunAuth, vlmRunCommon } from '../common'; import { analyzeVideoProperties } from '../common/properties'; import { analyzeVideoSchema } from '../common/schemas'; export const analyzeVideo = createAction({ auth: vlmRunAuth, name: 'analyzeVideo', displayName: 'Analyze Video', description: 'Analyze a video file or URL, e.g. extract frames, detect content, etc.', props: analyzeVideoProperties, async run({ auth: apiKey, propsValue }) { await propsValidation.validateZod(propsValue, analyzeVideoSchema); const { video, domain } = propsValue; const uploadResponse = await vlmRunCommon.uploadFile({ apiKey, file: video, }); const response = await vlmRunCommon.analyzeVideo({ apiKey, file_id: uploadResponse.id, domain, }); return await vlmRunCommon.getresponse(apiKey, response.id, response.status); }, });

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