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 } from '@activepieces/pieces-framework';
import { spotifyCommon, makeClient } from '../common';
export default createAction({
name: 'get_playlist_info',
classification: 'READ',
displayName: 'Get Playlist Info',
description: 'Retrieves details of a playlist',
audience: 'both',
aiMetadata: {
description: 'Retrieves the details of a single playlist (name, description, owner, track count, etc.) by its playlist id. Use it to inspect playlist metadata once you have the id. Read-only and repeatable.',
idempotent: true,
},
auth: spotifyCommon.authentication,
props: {
playlist_id: spotifyCommon.playlist_id(true),
},
async run({ auth, propsValue }) {
const client = makeClient({ auth });
return await client.getPlaylist(propsValue.playlist_id as string);
},
});