Skip to content

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

Update MAX_STRING_LENGTH to 500000

Magnus Müller868db5e657b8
diff --git a/browser_use/agent/cloud_events.py b/browser_use/agent/cloud_events.py
index be6f00b1f..43142f8b1 100644
--- a/browser_use/agent/cloud_events.py
+++ b/browser_use/agent/cloud_events.py
@@ -8,7 +8,7 @@ from bubus import BaseEvent
from pydantic import Field, field_validator
from uuid_extensions import uuid7str
-MAX_STRING_LENGTH = 100000 # 100K chars ~ 25k tokens should be enough
+MAX_STRING_LENGTH = 500000 # 100K chars ~ 25k tokens should be enough
MAX_URL_LENGTH = 100000
MAX_TASK_LENGTH = 100000
MAX_COMMENT_LENGTH = 2000