AgentOS Extensions API - v1.0.3
    Preparing search index...

    Tool for reading files

    Implements

    Index

    Constructors

    Properties

    category: "system" = 'system'
    description: "Read the contents of a file from disk." = 'Read the contents of a file from disk.'
    displayName: "Read File" = 'Read File'
    hasSideEffects: false
    id: "cli-file-read-v1" = 'cli-file-read-v1'
    inputSchema: JSONSchemaObject = ...
    name: "file_read" = 'file_read'

    Tool call name used by the LLM / ToolExecutor.

    Methods

    • Read file

      Parameters

      • input: {
            encoding?: BufferEncoding;
            fromEnd?: boolean;
            lines?: number;
            maxBytes?: number;
            path: string;
        }
      • _context: ToolExecutionContext

      Returns Promise<ToolExecutionResult<FileReadResult>>

    • Validate input

      Parameters

      • input: Record<string, any>

      Returns { errors?: any[]; isValid: boolean }