/** * Read tool: read file contents from the local filesystem. * * Returns file content with line numbers in `cat -n` format. * Handles text files, images (base64 ImageContent), and * detects binary files. * * Reference: docs/cortex/tools/read.md */ import { Type, type Static } from 'typebox'; import type { ReadRegistry } from './shared/read-registry.js'; import type { ToolContentDetails } from '../types.js'; import type { CortexToolRuntime } from './runtime.js'; export declare const ReadParams: Type.TObject<{ file_path: Type.TString; offset: Type.TOptional; limit: Type.TOptional; pages: Type.TOptional; }>; export type ReadParamsType = Static; export interface ReadDetails { filePath: string; totalLines: number; byteSize: number; truncated: boolean; truncatedLines: boolean; truncatedChars: boolean; /** Starting line number (1-based) for the content returned. */ startLine: number; /** True when the read was rejected by a size/token gate (content is an error message, not file data). */ rejected?: boolean; } export interface ReadToolConfig { runtime?: CortexToolRuntime | undefined; readRegistry?: ReadRegistry | undefined; } export declare function createReadTool(config: ReadToolConfig): { name: string; description: string; parameters: typeof ReadParams; execute: (params: ReadParamsType) => Promise>; }; //# sourceMappingURL=read.d.ts.map