Deprecate read_many_files tool (#12861)

This commit is contained in:
Abhi
2025-11-11 15:35:20 -05:00
committed by GitHub
parent 3154c06dc3
commit c1076512d1
7 changed files with 95 additions and 25 deletions
+5 -1
View File
@@ -10,6 +10,7 @@ import {
CommandKind,
} from './types.js';
import { MessageType, type HistoryItemToolsList } from '../types.js';
import { READ_MANY_FILES_TOOL_NAME } from '@google/gemini-cli-core';
export const toolsCommand: SlashCommand = {
name: 'tools',
@@ -44,7 +45,10 @@ export const toolsCommand: SlashCommand = {
type: MessageType.TOOLS_LIST,
tools: geminiTools.map((tool) => ({
name: tool.name,
displayName: tool.displayName,
displayName:
tool.name === READ_MANY_FILES_TOOL_NAME
? `${tool.displayName} (Deprecated)`
: tool.displayName,
description: tool.description,
})),
showDescriptions: useShowDescriptions,