What is Web Agent Protocol?
The Web Agent Protocol (WAP) is a standardized framework for recording and replaying browser actions, enabling seamless interaction between users, web agents, and browsers. It separates action recording from execution, providing a Python SDK to collect raw interaction data, convert it into replayable action lists, and optionally export those lists as MCP servers for reuse by any agent.
How to use Web Agent Protocol?
Install dependencies via pip install -r requirements.txt in a Python 3.11 conda environment, set PYTHONPATH to the project root, and create a .env file with your API keys. To record, install the OTA‑WAP Chrome extension, start the data‑collection server (python action_collect_server.py), and browse normally. Generate replay lists with python wap_replay/generate_exact_replay_list.py (exact) or python wap_replay/generate_smart_replay_list.py (smart), then replay with python run_replay.py --model-provider <name> --wap_replay_list <path>. For MCP integration, run python wap_replay/generate_mcp_server.py, then launch python wap_service.py in one terminal and python mcp_client.py in another.
Key features of Web Agent Protocol
- Record browser interactions via the OTA‑WAP Chrome extension
- Generate exact‑replay or smart‑replay action lists from raw events
- Convert recorded actions into MCP servers for reuse by any agent
- Replay action lists using the WAP‑Replay protocol
- Provide a desktop app for out‑of‑box replay without extra setup
Use cases of Web Agent Protocol
- Automate repetitive browser workflows by recording once and replaying any number of times
- Create goal‑oriented smart replays to perform complex multi‑step tasks
- Convert recorded sessions into MCP servers so agents can reuse them without re‑recording
- Collect high‑fidelity user‑interaction data for training or testing web agents
コメント