/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { BaseDeclarativeTool, type ToolInvocation, type ToolResult } from './tools.js'; import { Config } from '../config/config.js'; /** * Parameters for the ReadLineRange tool */ export interface ReadLineRangeToolParams { /** * The absolute path to the file to read */ absolute_path: string; /** * The 1-based line number to start reading from (inclusive) */ start_line: number; /** * The 1-based line number to end reading at (inclusive) */ end_line: number; /** * When true, prefixes each returned line with a virtual line number. */ showLineNumbers?: boolean; /** * When true, prefixes each returned text line with a git-change marker column. */ showGitChanges?: boolean; } /** * Implementation of the ReadLineRange tool logic */ export declare class ReadLineRangeTool extends BaseDeclarativeTool { private config; static readonly Name: string; constructor(config: Config); protected validateToolParamValues(params: ReadLineRangeToolParams): string | null; protected createInvocation(params: ReadLineRangeToolParams): ToolInvocation; }