Added usage details to /tools command. (#6849)

Co-authored-by: Bryan Morgan <bryanmorgan@google.com>
This commit is contained in:
Pavel Simakov
2025-08-26 14:07:12 -04:00
committed by GitHub
parent cf9de689c3
commit bdd63ce3e8
2 changed files with 2 additions and 1 deletions

View File

@@ -110,6 +110,7 @@ Slash commands provide meta-level control over the CLI itself.
- [**`/tools`**](../tools/index.md) - [**`/tools`**](../tools/index.md)
- **Description:** Display a list of tools that are currently available within Gemini CLI. - **Description:** Display a list of tools that are currently available within Gemini CLI.
- **Usage:** `/tools [desc]`
- **Sub-commands:** - **Sub-commands:**
- **`desc`** or **`descriptions`**: - **`desc`** or **`descriptions`**:
- **Description:** Show detailed descriptions of each tool, including each tool's name with its full description as provided to the model. - **Description:** Show detailed descriptions of each tool, including each tool's name with its full description as provided to the model.

View File

@@ -13,7 +13,7 @@ import { MessageType } from '../types.js';
export const toolsCommand: SlashCommand = { export const toolsCommand: SlashCommand = {
name: 'tools', name: 'tools',
description: 'list available Gemini CLI tools', description: 'list available Gemini CLI tools. Usage: /tools [desc]',
kind: CommandKind.BUILT_IN, kind: CommandKind.BUILT_IN,
action: async (context: CommandContext, args?: string): Promise<void> => { action: async (context: CommandContext, args?: string): Promise<void> => {
const subCommand = args?.trim(); const subCommand = args?.trim();