fix(analysis): expose provider image base (#2083)

This commit is contained in:
The one -Niu
2026-10-13 06:10:21 +09:00
committed by GitHub
parent 1dd20ce1ff
commit 81cca2e0e3
6 changed files with 35 additions and 1 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ export const ENHANCED_TOOL_CONTRACTS = [
),
enhanced(
"binary_overview",
"Return native-binary metadata, every segment with its length, and exhaustive procedure/string counts. Use search_procedures, list_procedures, or analyze_function directly when you already know which procedure to inspect.",
"Return native-binary metadata, every segment with its length, and exhaustive procedure/string counts. When every provider-reported segment agrees on an analysis image base, return it as image_base so callers can relate provider addresses to their loader coordinates. Use search_procedures, list_procedures, or analyze_function directly when you already know which procedure to inspect.",
enhancedInputSchemas.binary_overview,
),
...FUNCTION_WORKFLOW_TOOL_CONTRACTS,
+1
View File
@@ -364,6 +364,7 @@ export const enhancedOutputSchemas: Readonly<Record<string, z.ZodObject>> = {
segment_count: z.number().int().min(0),
procedure_count: z.number().int().min(0),
string_count: z.number().int().min(0),
image_base: z.string().min(1).optional(),
}),
),
analyze_function: functionDossierOutput,