Can't find a 'replace' or 'write_file' tools · Issue #3170 · google-gemini/gemini-cli · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

Can't find a 'replace' or 'write_file' tools #3170

Open
@aalbaali

Description

@aalbaali

What happened?

From this discussion:

I'm prompting Gemini to modify a file, and it attempts to do so by using the replace or write_file tools but it fails because it find them. An example of the error is

Error executing tool replace: Tool "replace" not found in registry.

Perhaps I have an installation issue (I used the npm install -g @google/gemini-cli method).

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.

What did you expect to happen?

A new foo.py to be written.

Client information

$ gemini /about
│ CLI Version              0.1.7
│ Git Commit               55cc809
│ Model                    gemini-2.5-pro
│ Sandbox                  no sandbox
│ OS                       linux
│ Auth Method              gemini-api-key  

Login information

No response

Anything else we need to know?

I installed gemini using npm install -g @google/gemini-cli

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/coreIssues related to the core functionality of the CLI.kind/bugSomething isn't workingpriority/p1Important and should be addressed in the near term.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      TMZ Celebrity News – Breaking Stories, Videos & Gossip

      Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

      Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

      🎥 Watch TMZ Live

      TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.