Skip to main content
Glama

mcp-google-sheets

create-document-from-file.ts846 B
import { createAction, Property } from '@activepieces/pieces-framework'; import { parseurAuth, parseurCommon } from '../common'; import { parserDropdown } from '../common/properties'; export const createDocumentFromFile = createAction({ auth: parseurAuth, name: 'createDocumentFromFile', displayName: 'Create Document from File', description: 'Creates new document in mailbox from file.', props: { parserId: parserDropdown({ required: true }), file: Property.File({ displayName: 'File', description: 'Select the file to upload', required: true, }), }, async run({ auth: apiKey, propsValue: { parserId, file } }) { if (!parserId) { throw new Error('Parser is required'); } return await parseurCommon.createDocumentFromFile({ apiKey, parserId, file, }); }, });

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