add excludeTools flag to settings.json config (#957)

This commit is contained in:
JingboWang1997-1
2025-06-11 14:32:23 -07:00
committed by GitHub
parent 122678cc09
commit 6ecdecbdcc
5 changed files with 24 additions and 1 deletions

View File

@@ -64,6 +64,9 @@ When you create a `.gemini/settings.json` file for project-specific settings, or
- **Description:** Allows you to specify a list of core tool names that should be made available to the model. This can be used to restrict or customize the set of built-in tools.
- **Example:** `"coreTools": ["ReadFileTool", "GlobTool", "SearchText"]`.
- **Behavior:** If this setting is provided, only the listed tools will be available for the model to use. If omitted, all default core tools are available. See [Built-in Tools](../core/tools-api.md#built-in-tools) for a list of core tools. You can also specify the alternative internal tool names used by the model, e.g. `read_file`, and you can get a full listing for that by simply asking the model "what tools do you have?".
- **`excludeTools`** (array of strings, optional):
- **Description:** Allows you to specify a list of core tool names that should be excluded from the model.
- **Example:** `"excludeTools": ["run_shell_command", "glob"]`.
- **`autoAccept`** (boolean, optional):
- **Description:** Controls whether the CLI automatically accepts and executes tool calls that are considered safe (e.g., read-only operations) without explicit user confirmation.