Gemini can't find a 'replace' or 'write_file' tools #2204
-
I'm prompting Gemini to modify a file, and it attempts to do so by using the Error executing tool replace: Tool "replace" not found in registry. Perhaps I have an installation issue (I used the Update: a simple prompt to repro: $ gemini --prompt "Write a foo.py python file that prints hello world"
Error executing tool write_file: Tool "write_file" not found in registry. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 10 replies
-
Please file an issue with repro steps. The specific prompt that is causing the issue would be helpful. Potentially your prompt is making Gemini CLI think you want to use a specific tool that doesn't exist. |
Beta Was this translation helpful? Give feedback.
-
I am observing the same behavior, example prompts (ran in empty folder): source/temp/gemini ❯ gemini -p "Generate a python project for a command line tool" took 4s
(node:16982) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Okay, I will generate a Python command-line tool project. Here is the plan:
1. Create a project directory named `my-cli-tool`.
2. Set up a basic Python package structure within it.
3. Add a `pyproject.toml` for packaging and dependency management.
4. Include a `README.md`, `.gitignore`, and `requirements.txt`.
5. Provide a simple "Hello, World!" example for the CLI.
I will now create the project directory and the package subdirectory. This command will create the necessary directories for the project.Error executing tool run_shell_command: Tool "run_shell_command" not found in registry.
|
Beta Was this translation helpful? Give feedback.
-
PR #2304 was submitted to address this issue. The change simply passes the error message to stderr instead of throwing an error in these cases. |
Beta Was this translation helpful? Give feedback.
-
Kinda funny, I've also seen gemini cli wanting a replace tool, and now reading it doesn't exist ? Perhaps give it a replace tool ? :) |
Beta Was this translation helpful? Give feedback.
-
Always check |
Beta Was this translation helpful? Give feedback.
-
From what I was able to find out, this is happening only when running |
Beta Was this translation helpful? Give feedback.
PR #2304 was submitted to address this issue.
The change simply passes the error message to stderr instead of throwing an error in these cases.