Gemini CLI Agent Fails to Utilize Parameters Discovered via `toolDiscoveryCommand` for Custom Tools
What happened?
The Gemini CLI agent failed to correctly recognize and utilize parameters for a custom tool, even though these parameters were accurately defined and returned by the toolDiscoveryCommand. When instructed to use the custom tool with arguments, the agent initially behaved as if the tool accepted no parameters, refusing to proceed with the parameter-based call. This required repeated and forceful commands from the user before the agent finally executed the tool with the specified arguments.
What did you expect to happen?
I expected the Gemini CLI agent to consistently and immediately recognize all parameters for custom tools as defined and returned by the toolDiscoveryCommand. Upon receiving a command to use a custom tool with arguments, the agent should have proceeded to call the tool with those arguments without hesitation or requiring repeated user commands.
Client information
- CLI Version: 0.2.1
- Git Commit: 3a8ec2d8
- Session ID: 7b826e43-d9e4-4836-8f2c-6f77c266dc56
- Operating System: win32 v22.17.1
- Sandbox Environment: no sandbox
- Model Version: gemini-2.5-flash
- Memory Usage: 258.3 MB
Login information
No response
Anything else we need to know?
No response
Found possible duplicate issues:
- #6791
If you believe this is not a duplicate, please remove the status/possible-duplicate label.
Hi are you still able to see this issue at this time?
If you are still seeing this any steps to repro would be very helpful to allow us to investigate this.
Hello! As part of our effort to keep our backlog manageable and focus on the most active issues, we are tidying up older reports.
It looks like this issue hasn't been active for a while, so we are closing it for now. However, if you are still experiencing this bug on the latest stable build, please feel free to comment on this issue or create a new one with updated details.
Thank you for your contribution!