Skip to main content
Glama

mcp-google-sheets

analyze-image.ts920 B
import { propsValidation } from '@activepieces/pieces-common'; import { createAction } from '@activepieces/pieces-framework'; import { vlmRunAuth, vlmRunCommon } from '../common'; import { analyzeImageProperties } from '../common/properties'; import { analyzeImageSchema } from '../common/schemas'; export const analyzeImage = createAction({ auth: vlmRunAuth, name: 'analyzeImage', displayName: 'Analyze Image', description: 'Process an image (file or URL), extracting descriptions, detecting objects, etc.', props: analyzeImageProperties, async run({ auth: apiKey, propsValue }) { await propsValidation.validateZod(propsValue, analyzeImageSchema); const { image, domain } = propsValue; const response = await vlmRunCommon.analyzeImage({ apiKey, images: [image], 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