opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Gemini doesn't find edit tool

Open ssoteloserrano opened this issue 2 months ago • 6 comments

Description

An error occurred during a process run by the build agent, which uses the Gemini 2.5 Pro model. The model attempted to call the edit tool, but this tool appears to be unavailable in the agent's environment. This resulted in an "invalid tool" error.

Full Error Message: ⚙ invalid [error=Model tried to call unavailable tool 'edit'. Available tools: invalid, bash, webfetch, glob, grep, list, read, todowrite, todoread, task, architecture_scan, testing_scan, config_scan, playwright_browser_close, playwright_browser_resize, playwright_browser_console_messages, playwright_browser_handle_dialog, playwright_browser_evaluate, playwright_browser_file_upload, playwright_browser_fill_form, playwright_browser_install, playwright_browser_press_key, playwright_browser_type, playwright_browser_navigate, playwright_browser_navigate_back, playwright_browser_network_requests, playwright_browser_take_screenshot, playwright_browser_snapshot, playwright_browser_click, playwright_browser_drag, playwright_browser_hover, playwright_browser_select_option, playwright_browser_tabs, playwright_browser_wait_for., tool=edit]

OpenCode version

1.0.55

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Arch linux

Terminal

Kitty

ssoteloserrano avatar Nov 11 '25 16:11 ssoteloserrano