spiderfoot_scan_data_unique
Retrieve unique scan results from SpiderFoot OSINT reconnaissance to analyze distinct findings and eliminate duplicate data for focused investigation.
Instructions
Fetch unique scan event results.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| eventType | No |
Implementation Reference
- src/spiderfootClient.ts:68-74 (handler)Core handler logic for the 'spiderfoot_scan_data_unique' tool: makes HTTP POST request to Spiderfoot API '/scaneventresultsunique' with scan ID and optional eventType to retrieve unique event results.async scanEventResultsUnique(args: { id: string; eventType?: string }) { const { data } = await this.http.post('/scaneventresultsunique', { id: args.id, eventType: args.eventType ?? 'ALL', }); return data; }
- src/index.ts:88-92 (registration)Registers the 'spiderfoot_scan_data_unique' tool with the MCP stdio server, including input schema {id: string, eventType?: string} and thin wrapper handler calling SpiderfootClient.scanEventResultsUnique.server.registerTool( 'spiderfoot_scan_data_unique', { title: 'Scan Data Unique', description: 'Fetch unique scan event results.', inputSchema: { id: z.string(), eventType: z.string().optional() } }, async ({ id, eventType }) => ({ content: [{ type: 'text', text: JSON.stringify(await sf.scanEventResultsUnique({ id, eventType })) }] }) );
- src/index-http.ts:72-76 (registration)Registers the 'spiderfoot_scan_data_unique' tool with the MCP HTTP server, including input schema {id: string, eventType?: string} and thin wrapper handler calling SpiderfootClient.scanEventResultsUnique.server.registerTool( 'spiderfoot_scan_data_unique', { title: 'Scan Data Unique', description: 'Fetch unique scan event results.', inputSchema: { id: z.string(), eventType: z.string().optional() } }, async ({ id, eventType }) => ({ content: [{ type: 'text', text: JSON.stringify(await sf.scanEventResultsUnique({ id, eventType })) }] }) );
- src/index.ts:23-26 (schema)Zod schema definition for scan data input (id: string.min(1), eventType?: string), closely matching the tool's inputSchema (used generally for scan data tools).const ScanDataSchema = z.object({ id: z.string().min(1), eventType: z.string().optional(), });