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 { intruderAuth } from '../common/auth';
import { makeRequest } from '../common/client';
import { HttpMethod } from '@activepieces/pieces-common';
export const startScan = createAction({
auth: intruderAuth,
name: 'startScan',
displayName: 'Start Scan',
description:
'Start a new scan. Optionally specify target addresses and/or tag names. If no targets or tags are provided, the scan will run on all targets.',
audience: 'both',
aiMetadata: {
description:
'Launches a new vulnerability scan in Intruder. Operates in two modes: when target addresses and/or tag names are supplied it scans only the matching targets, and when both are left empty it scans all targets in the account. Use when an agent needs to actively assess assets for security issues. Not idempotent: each call kicks off a separate scan run.',
idempotent: false,
},
props: {
target_addresses: Property.Array({
displayName: 'Target Addresses',
description:
'Target addresses to scan (e.g., example.com, 192.168.1.1). Leave empty to scan all targets.',
required: false,
}),
tag_names: Property.Array({
displayName: 'Tag Names',
description:
'Tag names to filter targets. Leave empty to scan all targets.',
required: false,
}),
},
async run({ auth, propsValue }) {
const body: {
target_addresses?: string[];
tag_names?: string[];
} = {};
if (propsValue.target_addresses && propsValue.target_addresses.length > 0) {
body.target_addresses = propsValue.target_addresses as string[];
}
if (propsValue.tag_names && propsValue.tag_names.length > 0) {
body.tag_names = propsValue.tag_names as string[];
}
const response = await makeRequest(
auth.secret_text,
HttpMethod.POST,
'/scans/',
Object.keys(body).length > 0 ? body : undefined
);
return response;
},
});