/** * Browse Tool Handlers * * Handlers for smart_browse, batch_browse, and domain intelligence tools. * These are the primary browsing tools for the MCP server. */ import type { SmartBrowser } from '../../core/smart-browser.js'; import { type McpResponse } from '../response-formatters.js'; /** * Arguments for smart_browse tool */ export interface SmartBrowseArgs { url: string; contentType?: string; followPagination?: boolean; maxPages?: number; checkForChanges?: boolean; waitForSelector?: string; scrollToLoad?: boolean; sessionProfile?: string; maxChars?: number; includeTables?: boolean; includeNetwork?: boolean; includeConsole?: boolean; includeHtml?: boolean; includeInsights?: boolean; includeDecisionTrace?: boolean; maxLatencyMs?: number; maxCostTier?: 'intelligence' | 'lightweight' | 'playwright'; freshnessRequirement?: 'realtime' | 'cached' | 'any'; } /** * Arguments for batch_browse tool */ export interface BatchBrowseArgs { urls: string[]; contentType?: string; waitForSelector?: string; scrollToLoad?: boolean; sessionProfile?: string; maxChars?: number; includeTables?: boolean; includeNetwork?: boolean; includeConsole?: boolean; concurrency?: number; stopOnError?: boolean; continueOnRateLimit?: boolean; perUrlTimeoutMs?: number; totalTimeoutMs?: number; maxLatencyMs?: number; maxCostTier?: 'intelligence' | 'lightweight' | 'playwright'; } /** * Handle smart_browse tool call */ export declare function handleSmartBrowse(smartBrowser: SmartBrowser, args: SmartBrowseArgs): Promise; /** * Handle batch_browse tool call */ export declare function handleBatchBrowse(smartBrowser: SmartBrowser, args: BatchBrowseArgs): Promise; /** * Handle get_domain_intelligence tool call (deprecated) */ export declare function handleGetDomainIntelligence(smartBrowser: SmartBrowser, domain: string): Promise; /** * Handle get_domain_capabilities tool call (deprecated) */ export declare function handleGetDomainCapabilities(smartBrowser: SmartBrowser, domain: string): Promise; //# sourceMappingURL=browse-handlers.d.ts.map