export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH' export interface ToolResponse { success: boolean // Whether the tool execution was successful output: Record // The structured output from the tool error?: string // Error message if success is false } export interface ToolConfig

{ // Basic tool identification id: string name: string description: string version: string // Parameter schema - what this tool accepts params: Record< string, { type: string required?: boolean requiredForToolCall?: boolean default?: any description?: string } > // Request configuration request: { url: string | ((params: P) => string) method: string headers: (params: P) => Record body?: (params: P) => Record isInternalRoute?: boolean // Whether this is an internal API route } // Response handling transformResponse: (response: Response) => Promise transformError: (error: any) => string } export interface TableRow { id: string cells: { Key: string Value: string } }