From bdd63ce3e8b8fdc9fac953f8a0cebd8207bcf768 Mon Sep 17 00:00:00 2001 From: Pavel Simakov Date: Tue, 26 Aug 2025 14:07:12 -0400 Subject: [PATCH] Added usage details to /tools command. (#6849) Co-authored-by: Bryan Morgan --- docs/cli/commands.md | 1 + packages/cli/src/ui/commands/toolsCommand.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/cli/commands.md b/docs/cli/commands.md index b28b2dd3..beeecb88 100644 --- a/docs/cli/commands.md +++ b/docs/cli/commands.md @@ -110,6 +110,7 @@ Slash commands provide meta-level control over the CLI itself. - [**`/tools`**](../tools/index.md) - **Description:** Display a list of tools that are currently available within Gemini CLI. + - **Usage:** `/tools [desc]` - **Sub-commands:** - **`desc`** or **`descriptions`**: - **Description:** Show detailed descriptions of each tool, including each tool's name with its full description as provided to the model. diff --git a/packages/cli/src/ui/commands/toolsCommand.ts b/packages/cli/src/ui/commands/toolsCommand.ts index 31ff8c27..1f4681ea 100644 --- a/packages/cli/src/ui/commands/toolsCommand.ts +++ b/packages/cli/src/ui/commands/toolsCommand.ts @@ -13,7 +13,7 @@ import { MessageType } from '../types.js'; export const toolsCommand: SlashCommand = { name: 'tools', - description: 'list available Gemini CLI tools', + description: 'list available Gemini CLI tools. Usage: /tools [desc]', kind: CommandKind.BUILT_IN, action: async (context: CommandContext, args?: string): Promise => { const subCommand = args?.trim();