Skip to main content
Glama

mcp-google-sheets

analyze-document.ts1.05 kB
import { propsValidation } from '@activepieces/pieces-common'; import { createAction } from '@activepieces/pieces-framework'; import { vlmRunAuth, vlmRunCommon } from '../common'; import { analyzeDocumentProperties } from '../common/properties'; import { analyzeDocumentSchema } from '../common/schemas'; export const analyzeDocument = createAction({ auth: vlmRunAuth, name: 'analyzeDocument', displayName: 'Analyze Document', description: 'Process a document (PDF, DOCX, etc.), extracting structured data or text.', props: analyzeDocumentProperties, async run({ auth: apiKey, propsValue }) { await propsValidation.validateZod(propsValue, analyzeDocumentSchema); const { document, domain } = propsValue; const uploadResponse = await vlmRunCommon.uploadFile({ apiKey, file: document, }); const response = await vlmRunCommon.analyzeDocument({ 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