spiderfoot_scan_info
Retrieve metadata and configuration details for a specific SpiderFoot OSINT reconnaissance scan using its unique scan ID.
Instructions
Retrieve scan metadata/config for a scan ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Implementation Reference
- src/index.ts:63-67 (registration)Registration of the 'spiderfoot_scan_info' MCP tool, including inline input schema (id: string) and handler function that calls sf.scanInfo(id) and returns JSON response.server.registerTool( 'spiderfoot_scan_info', { title: 'Scan Info', description: 'Retrieve scan metadata/config for a scan ID.', inputSchema: { id: z.string() } }, async ({ id }) => ({ content: [{ type: 'text', text: JSON.stringify(await sf.scanInfo(id)) }] }) );
- src/index-http.ts:47-51 (registration)Registration of the 'spiderfoot_scan_info' MCP tool in HTTP server variant, including inline input schema (id: string) and handler function that calls sf.scanInfo(id) and returns JSON response.server.registerTool( 'spiderfoot_scan_info', { title: 'Scan Info', description: 'Retrieve scan metadata/config for a scan ID.', inputSchema: { id: z.string() } }, async ({ id }) => ({ content: [{ type: 'text', text: JSON.stringify(await sf.scanInfo(id)) }] }) );
- src/spiderfootClient.ts:44-47 (handler)Core handler logic for retrieving scan information: HTTP GET to /scanopts endpoint with scan ID parameter, returning the response data.async scanInfo(id: string) { const { data } = await this.http.get('/scanopts', { params: { id } }); return data; }
- src/index.ts:35-35 (schema)Zod schema for scan info input parameters (id: non-empty string), defined but not directly used in tool registration.const ScanInfoSchema = z.object({ id: z.string().min(1) });