Skip to content

Commit ea93b4f

Browse files
committed
update drag_n_drop tool name
1 parent e32b0c1 commit ea93b4f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/action_handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ def handle_remote_macos_open_application(arguments: dict[str, Any]) -> List[type
556556
vnc.close()
557557

558558

559-
def handle_remote_macos_mouse_drag(arguments: dict[str, Any]) -> list[types.TextContent | types.ImageContent | types.EmbeddedResource]:
559+
def handle_remote_macos_mouse_drag_n_drop(arguments: dict[str, Any]) -> list[types.TextContent | types.ImageContent | types.EmbeddedResource]:
560560
"""Perform a mouse drag operation on a remote MacOs machine."""
561561
# Use environment variables
562562
host = MACOS_HOST

src/mcp_remote_macos_use/server.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
handle_remote_macos_mouse_click,
3939
handle_remote_macos_mouse_double_click,
4040
handle_remote_macos_open_application,
41-
handle_remote_macos_mouse_drag
41+
handle_remote_macos_mouse_drag_n_drop
4242
)
4343

4444
# Configure logging
@@ -230,8 +230,8 @@ async def handle_list_tools() -> list[types.Tool]:
230230
},
231231
),
232232
types.Tool(
233-
name="remote_macos_mouse_drag",
234-
description="Perform a mouse drag operation from start point to end point on a remote MacOs machine, with automatic coordinate scaling. Uses environment variables for connection details.",
233+
name="remote_macos_mouse_drag_n_drop",
234+
description="Perform a mouse drag operation from start point and drop to end point on a remote MacOs machine, with automatic coordinate scaling.",
235235
inputSchema={
236236
"type": "object",
237237
"properties": {
@@ -280,8 +280,8 @@ async def handle_call_tool(
280280
elif name == "remote_macos_open_application":
281281
return handle_remote_macos_open_application(arguments)
282282

283-
elif name == "remote_macos_mouse_drag":
284-
return handle_remote_macos_mouse_drag(arguments)
283+
elif name == "remote_macos_mouse_drag_n_drop":
284+
return handle_remote_macos_mouse_drag_n_drop(arguments)
285285

286286
else:
287287
raise ValueError(f"Unknown tool: {name}")

0 commit comments

Comments
 (0)