Skip to main content
Glama

mcp-google-sheets

create-document.ts728 B
import { createAction } from '@activepieces/pieces-framework'; import { docsCommon } from '../common'; import { googleDocsAuth } from '../..'; export const createDocument = createAction({ auth: googleDocsAuth, name: 'create_document', description: 'Create a document on Google Docs', displayName: 'Create Document', props: { title: docsCommon.title, body: docsCommon.body, }, async run(context) { const document = await docsCommon.createDocument( context.propsValue.title, context.auth.access_token ); const response = await docsCommon.writeToDocument( document.documentId, context.propsValue.body, context.auth.access_token ); return response; }, });

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