You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
f"Describe in detail what you see on the page and answer the question. "
65
-
f"If the page appears to be blank or not rendering, check console logs and include any error messages in your description."
66
-
)
62
+
task=""
67
63
ifquestion:
68
-
task+=f" Pay special attention to: {question}"
64
+
task+=f"QUESTION TO ANSWER: {question}\n\n"
65
+
task+=f"URL: {url}\n\n"
66
+
task+= (
67
+
"Steps:\n"
68
+
"1. Navigate to the URL and take a screenshot.\n"
69
+
"2. If the page is blank or shows errors, get console logs and report the exact error messages.\n"
70
+
"3. If the question requires interaction (clicking buttons, typing values, scrolling), perform those actions and take screenshots to capture the result.\n"
71
+
"4. Use get_text to read specific values if visual inspection is not precise enough.\n"
72
+
"5. End your response with a one-line verdict: PASS, FAIL, or PARTIAL — and explain why with specific evidence (values seen, errors found, etc.)."
Copy file name to clipboardExpand all lines: config.example.yaml
+13-1Lines changed: 13 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,8 @@ agent:
45
45
- Do NOT use `applypatch`, `patch`, or any tool not available in a standard bash environment.
46
46
- After each edit, verify the change took effect with `grep -n` or a small `sed -n` read.
47
47
- If an edit fails twice in a row, switch to a different approach immediately.
48
-
48
+
- NEVER use `node - << 'EOF'` or `python3 - << 'EOF'` to edit files — heredoc + scripting language causes multi-level escaping bugs where replacements silently fail. Use `sed -i` for simple substitutions.
49
+
49
50
### Edit files with sed:
50
51
```bash
51
52
# Replace all occurrences
@@ -92,6 +93,17 @@ web_agent:
92
93
headless: true
93
94
max_steps: 20
94
95
log_dir: logs/
96
+
system_prompt: |
97
+
You are a web browsing agent with the ability to navigate pages, take screenshots, click elements, type text, and scroll.
98
+
99
+
TASK to do: Navigate to a URL, take a screenshot, and describe what you see. Report the visual appearance of the page clearly and concisely so the caller can decide whether to make changes.
100
+
101
+
General rules:
102
+
- Always navigate to the URL first, then take a screenshot before drawing conclusions.
103
+
- If the server is unreachable or the page doesn't appear as expected, check console log and report that immediately.
104
+
- If the question involves interaction (clicking a button, typing a value, scrolling), perform those actions and take a screenshot after each one.
105
+
- Base your judgement on visual appearance and behaviour, not on source code.
106
+
- If the page shows a blank white page or an error message, check console log and report that clearly.
0 commit comments