booking WebMCP
Browser tool configuration for booking
Tools (1)
search_hotels()
Search for hotels by destination and dates
Parameters
JavaScript Handler
(params) => {
const searchBox = document.querySelector('[data-testid="destination-container"] input');
if (searchBox) {
searchBox.value = params.destination;
searchBox.dispatchEvent(new Event('input', { bubbles: true }));
}
return { success: true, message: 'Search criteria filled' };
}
WebMCP clients
Use mcp-chrome, or fetch the same tools from the public API in your own browser automation runtime.
How to Use WebMCP
WebMCP tools are designed for browser extensions or automation frameworks. The browser extension matches the current URL against the pattern and executes the JavaScript handler when the tool is invoked.
API Endpoint:
GET /api/webmcp/match?url=https://www.booking.com/...
Third-party clients can use the same endpoint as mcp-chrome. Execute the returned JavaScript handler in your own browser page context.