/** * visus_context_scan Tool * Standalone tool to scan provided history for multi-turn priming risks. * Call manually before high-risk tools (visus_fetch, visus_search) if stateful concerns. * Integrates with local JSON cache for session persistence. */ import type { CallToolRequestHandler } from '@modelcontextprotocol/sdk/types.js'; /** * Tool definition */ export declare const visusContextScanToolDefinition: { readonly name: "visus_context_scan"; readonly description: "\nDetect multi-turn priming risks in conversation history (e.g., \"save this URL from Page 1\" used in Page 2 tool call). \nScans for stateful chaining attacks. Use before visus_fetch/visus_search when suspicious.\n\nProvides risk score (0-1), primed entities (hashed URLs/IPs/tools), and threats. \nHigh risk (>0.7) triggers HITL confirmation. Persists primed hashes in local session cache.\n\nInput history should include last 5-10 messages. priorExtractions optional (from prior visus tools).\n "; readonly strict: true; readonly inputSchema: { readonly type: "object"; readonly properties: { readonly sessionId: { readonly type: "string"; readonly description: "Session ID for cache persistence (auto-generated if missing)"; }; readonly history: { readonly type: "array"; readonly items: { readonly type: "string"; }; readonly minItems: 1; readonly description: "Conversation history (last 5-10 messages recommended)"; }; readonly priorExtractions: { readonly type: "array"; readonly description: "Prior visus_fetch/search/read outputs (metadata only, 3-5 recommended)"; }; readonly currentTool: { readonly type: "string"; readonly enum: readonly ["visus_fetch", "visus_search", "visus_read"]; readonly description: "Current tool call for cross-reference (required)"; }; }; readonly required: readonly ["history", "currentTool"]; readonly additionalProperties: false; }; readonly readOnlyHint: true; readonly destructiveHint: false; readonly idempotentHint: true; readonly openWorldHint: false; }; /** * visus_context_scan implementation */ export declare const visusContextScan: CallToolRequestHandler; //# sourceMappingURL=context-scan.d.ts.map