al4_file_results
Retrieve all service analysis results for a file by providing its SHA256 hash. Get a comprehensive overview of the file's analysis from multiple services.
Instructions
Get all service analysis results for a file by SHA256.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha256 | Yes |
Implementation Reference
- src/index.ts:296-306 (schema)Input schema definition for the al4_file_results tool. Requires a 'sha256' string parameter.
{ name: "al4_file_results", description: "Get all service analysis results for a file by SHA256.", inputSchema: { type: "object", properties: { sha256: { type: "string" }, }, required: ["sha256"], }, }, - src/index.ts:445-447 (handler)Handler case in the CallToolRequestSchema switch block. Calls client.getFileResults() with the sha256 argument.
case "al4_file_results": result = await client.getFileResults(a.sha256 as string); break; - src/al4-client.ts:679-690 (helper)Client method getFileResults that makes a GET request to /api/v4/file/result/{sha256}/ to retrieve service analysis results for a file.
getFileResults( sha256: string, opts?: RequestOptions, ): Promise<Record<string, unknown>> { if (!SHA256_RE.test(sha256)) throw new Error(`Invalid sha256: ${sha256}`); return this.requestJson( "GET", `/api/v4/file/result/${seg(sha256)}/`, undefined, opts, ); }