Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

Input index can be 0

Magnus Müller586dcc0a8266
diff --git a/browser_use/tools/views.py b/browser_use/tools/views.py
index 5e3a90786..cb4399d04 100644
--- a/browser_use/tools/views.py
+++ b/browser_use/tools/views.py
@@ -35,7 +35,7 @@ class ClickElementAction(BaseModel):
class InputTextAction(BaseModel):
- index: int = Field(ge=1, description='from browser_state')
+ index: int = Field(ge=0, description='from browser_state')
text: str
clear: bool = Field(default=True, description='1=clear, 0=append')