Skip to main content
Glama

mcp-google-sheets

get-file.ts666 B
import { propsValidation } from '@activepieces/pieces-common'; import { createAction } from '@activepieces/pieces-framework'; import { vlmRunAuth, vlmRunCommon } from '../common'; import { getFileProperties } from '../common/properties'; import { getFileSchema } from '../common/schemas'; export const getFile = createAction({ auth: vlmRunAuth, name: 'getFile', displayName: 'Get File', description: "Gets file's metadata by ID.", props: getFileProperties, async run({ auth: apiKey, propsValue }) { await propsValidation.validateZod(propsValue, getFileSchema); return await vlmRunCommon.getFile({ apiKey, file_id: propsValue.fileId }); }, });

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