INNER CODE UNIT · Python

browser_select_option

feder-cr/Jobs_Applier_AI_Agent_AIHawk · src/aihawk/mcp/server.py:424

async def browser_select_option(selector: str, value: str) -> str:
    """Choose an option in a dropdown (`<select>`), by its visible label or by
    its value.

    Use this rather than clicking the dropdown and pressing arrow keys: a click
    plus arrows cannot tell you which row it landed on, and setting the value
    through browser_evaluate changes it without the page seeing a real
    interaction."""
    return await actions.select_option(await registry.ensure(), selector, value)


@mcp.tool()
async def browser_press_key(key: str) -> str:
    """Press a key on whatever has focus: "Enter", "Tab", "Escape",
    "ArrowDown", "Control+a", or a single character."""
    return await actions.press_key(await registry.ensure(), key)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…