AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import { createAction, Property } from '@activepieces/pieces-framework';
import { zooAuth } from '../../auth'
import { cadFileAnalysis } from '../../common/cad-file-analysis';
export const getVolumeAction = createAction({
name: 'get_volume',
classification: 'READ',
displayName: 'Get Volume',
description: 'Calculate the volume of a CAD file',
audience: 'both',
aiMetadata: { description: 'Compute the enclosed volume of a 3D solid from an uploaded CAD file (FBX, GLB, glTF, OBJ, PLY, STEP, or STL). Pick this for volume specifically; sibling actions cover mass, density, surface area, and center of mass. Read-only analysis that does not modify the file and returns the same value for the same input.', idempotent: true },
auth: zooAuth,
// category: 'File Operations',
props: {
file: Property.File({
displayName: 'CAD File',
required: true,
description: 'The CAD file to analyze',
}),
sourceFormat: cadFileAnalysis.sourceFormat,
},
async run({ auth, propsValue }) {
return cadFileAnalysis.analyze({ token: auth.secret_text, endpoint: 'volume', file: propsValue.file, sourceFormat: propsValue.sourceFormat });
},
});