Skip to main content
Glama

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
NameRequiredDescriptionDefault
idsYes

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)) }] }) );
  • 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)) }] }) );
  • 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) });
  • 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; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/CorbettCajun/Spiderfoot-MCP-Server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server