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 { confluenceAuth } from '../../auth';
import { confluenceAiProps } from '../../common/ai-props';
import { confluenceApi } from '../../common/api';
import { confluenceGetInlineCommentOutputSchema } from '../../output-schemas';
export const getInlineCommentAction = createAction({
auth: confluenceAuth,
name: 'confluence_get_inline_comment',
outputSchema: confluenceGetInlineCommentOutputSchema,
displayName: 'Get Inline Comment',
description: 'Gets a inline comment by ID.',
audience: 'ai',
classification: 'READ',
aiMetadata: {
description:
'Gets one Confluence inline comment by ID, with its body, version and the page, blog post or parent comment it belongs to.',
idempotent: true,
},
props: {
commentId: confluenceAiProps.commentId({ required: true }),
bodyFormat: Property.StaticDropdown({
displayName: 'Body Format',
description: 'Body representation to return. Defaults to storage (XHTML).',
required: false,
defaultValue: 'storage',
options: {
disabled: false,
options: [
{ label: 'Storage (XHTML)', value: 'storage' },
{ label: 'Atlas Document Format', value: 'atlas_doc_format' },
{ label: 'View (rendered HTML)', value: 'view' },
],
},
}),
},
async run(context) {
const { commentId, bodyFormat } = context.propsValue;
return await confluenceApi.getContent({
auth: context.auth,
contentType: 'inline-comments',
contentId: commentId,
query: { 'body-format': bodyFormat ?? 'storage' },
});
},
});