diff --git a/cdp_server.py b/cdp_server.py index 67e1ddc..5701e62 100644 --- a/cdp_server.py +++ b/cdp_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