diff --git a/mcp_servers/pyproject.toml b/mcp_servers/pyproject.toml index fbeb3d83140..d98522da33f 100644 --- a/mcp_servers/pyproject.toml +++ b/mcp_servers/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "seleniumbase-mcp" -version = "1.3.9dev0" +version = "1.3.10dev0" description = "MCP server exposing SeleniumBase CDP Mode as tools for MCP clients." readme = "README.md" requires-python = ">=3.10" diff --git a/mcp_servers/server.py b/mcp_servers/server.py index 02814c5d858..51814517918 100644 --- a/mcp_servers/server.py +++ b/mcp_servers/server.py @@ -65,8 +65,10 @@ """ from __future__ import annotations import atexit +import os import sys from functools import wraps +from pathlib import Path from typing import Any, Literal from mcp.server import MCPServer from mcp.server.mcpserver.exceptions import ToolError @@ -1016,6 +1018,15 @@ def type_text( Returns: A confirmation message after the operation succeeds; otherwise the error handler returns the resulting failure. + + Notes: + Including "\\n" in your `text` (except in "set_value" mode) will + simulate pressing the "Enter" key, which is useful for submitting + forms or triggering search inputs without needing a separate click. + + Tool selection: + - Need to update text that appears in a text field -> use this tool. + - Need to update the value of a