Skip to main content
Glama

mcp-google-sheets

find.ts756 B
import { Property, createAction } from '@activepieces/pieces-framework'; export const find = createAction({ description: 'Find substring (Regex or Text).', displayName: 'Find', name: 'find', errorHandlingOptions: { continueOnFailure: { hide: true, }, retryOnFailure: { hide: true, }, }, props: { text: Property.ShortText({ displayName: 'text', required: true, }), expression: Property.ShortText({ displayName: 'Expression', description: 'Regex or text to search for.', required: true, }), }, run: async (ctx): Promise<RegExpMatchArray | null> => { const expression = RegExp(ctx.propsValue.expression); return ctx.propsValue.text.match(expression); }, });

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