Spaces:
Running
Running
Amir Mahla
commited on
Commit
·
47208f4
1
Parent(s):
1771353
CHG prompt
Browse files
cua2-core/src/cua2_core/services/agent_utils/prompt.py
CHANGED
|
@@ -107,6 +107,12 @@ Never manually click the browser icon — use `open_url()` directly for web page
|
|
| 107 |
- New document: `press(['ctrl', 'n'])`
|
| 108 |
- Open file: `press(['ctrl', 'o'])`
|
| 109 |
- These shortcuts are faster, more reliable, and work across most applications.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 110 |
- Complete one atomic action per step: e.g., **click**, **type**, or **wait**.
|
| 111 |
- Never combine multiple tool calls in one step.
|
| 112 |
- Validate that your previous action succeeded before continuing.
|
|
|
|
| 107 |
- New document: `press(['ctrl', 'n'])`
|
| 108 |
- Open file: `press(['ctrl', 'o'])`
|
| 109 |
- These shortcuts are faster, more reliable, and work across most applications.
|
| 110 |
+
- **For writing multiline text in documents**: When you need to write multiple lines of text, you can generate multiline writes by separating each line with a press of the Enter key. For example, to write a paragraph with multiple lines:
|
| 111 |
+
- First line: `write("First line of text")`
|
| 112 |
+
- Press Enter: `press(['enter'])`
|
| 113 |
+
- Second line: `write("Second line of text")`
|
| 114 |
+
- Press Enter: `press(['enter'])`
|
| 115 |
+
- Continue this pattern for additional lines. Each line should be written in a separate action step, followed by pressing Enter to move to the next line.
|
| 116 |
- Complete one atomic action per step: e.g., **click**, **type**, or **wait**.
|
| 117 |
- Never combine multiple tool calls in one step.
|
| 118 |
- Validate that your previous action succeeded before continuing.
|