Skip to content

Commit 07f9f6f

Browse files
author
Aman Rusia
committed
Minor tool prompt improvement
1 parent 6b11bf2 commit 07f9f6f

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
authors = [{ name = "Aman Rusia", email = "[email protected]" }]
33
name = "wcgw"
4-
version = "2.0.2"
4+
version = "2.0.3"
55
description = "What could go wrong giving full shell access to chatgpt?"
66
readme = "README.md"
77
requires-python = ">=3.11, <3.13"

src/wcgw/client/anthropic_client.py

+3
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ def loop(
262262
- Interact with the linux os on docker using mouse.
263263
- Uses xdotool
264264
- About left_click_drag: the current mouse position will be used as the starting point, click and drag to the given x, y coordinates. Useful in things like sliders, moving things around, etc.
265+
- The output of this command has the screenshot after doing this action. Use this to verify if the action was successful.
265266
""",
266267
),
267268
ToolParam(
@@ -272,6 +273,8 @@ def loop(
272273
- Emulate keyboard input to the screen
273274
- Uses xdootool to send keyboard input, keys like Return, BackSpace, Escape, Page_Up, etc. can be used.
274275
- Do not use it to interact with Bash tool.
276+
- Make sure you've selected a text area or an editable element before sending text.
277+
- The output of this command has the screenshot after doing this action. Use this to verify if the action was successful.
275278
""",
276279
),
277280
]

src/wcgw/client/mcp_server/server.py

+2
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ async def handle_list_tools() -> list[types.Tool]:
178178
- Interact with the linux os on docker using mouse.
179179
- Uses xdotool
180180
- About left_click_drag: the current mouse position will be used as the starting point, click and drag to the given x, y coordinates. Useful in things like sliders, moving things around, etc.
181+
- The output of this command has the screenshot after doing this action. Use this to verify if the action was successful.
181182
""",
182183
),
183184
ToolParam(
@@ -189,6 +190,7 @@ async def handle_list_tools() -> list[types.Tool]:
189190
- Uses xdootool to send keyboard input, keys like Return, BackSpace, Escape, Page_Up, etc. can be used.
190191
- Do not use it to interact with Bash tool.
191192
- Make sure you've selected a text area or an editable element before sending text.
193+
- The output of this command has the screenshot after doing this action. Use this to verify if the action was successful.
192194
""",
193195
),
194196
]

0 commit comments

Comments
 (0)