spiderfoot_export_json
Export SpiderFoot OSINT scan results in JSON format using comma-separated scan IDs for data analysis and integration.
Instructions
Export scan results in JSON for CSV of IDs.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes |
Implementation Reference
- src/index.ts:100-104 (registration)Registration of the 'spiderfoot_export_json' MCP tool in the stdio server, including the inline handler function that delegates to the SpiderfootClient's exportJson method.server.registerTool( 'spiderfoot_export_json', { title: 'Export JSON', description: 'Export scan results in JSON for CSV of IDs.', inputSchema: { ids: z.string() } }, async ({ ids }) => ({ content: [{ type: 'text', text: JSON.stringify(await sf.exportJson(ids)) }] }) );
- src/index-http.ts:84-88 (registration)Registration of the 'spiderfoot_export_json' MCP tool in the HTTP server, including the inline handler function that delegates to the SpiderfootClient's exportJson method.server.registerTool( 'spiderfoot_export_json', { title: 'Export JSON', description: 'Export scan results in JSON for CSV of IDs.', inputSchema: { ids: z.string() } }, async ({ ids }) => ({ content: [{ type: 'text', text: JSON.stringify(await sf.exportJson(ids)) }] }) );
- src/index.ts:36-36 (schema)Zod schema definition for the input of spiderfoot_export_json tool (though inline schema used in registration).const ExportJsonSchema = z.object({ ids: z.string().min(1) });
- src/spiderfootClient.ts:86-89 (helper)Implementation of the exportJson method in SpiderfootClient class, which performs the HTTP POST request to the Spiderfoot server endpoint '/scanexportjsonmulti' to export scan results as JSON.async exportJson(idsCsv: string) { const { data } = await this.http.post('/scanexportjsonmulti', { ids: idsCsv }); return data; }