Tool tree
Test page with registered WebMCP tools. Open this page in a Scrapfly Cloud Browser with enable_mcp=true to discover and call tools via the Model Context Protocol.
Implementation
gradeNot graded
gradeNot graded
searchProductsAnswer
Search products on the page by keyword. Returns matching product names and prices.
View tool JSON
{
"name": "searchProducts",
"kind": "answer",
"impl": "imperative",
"description": "Search products on the page by keyword. Returns matching product names and prices.",
"inputSchema": {
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Search keyword to match against product titles"
}
},
"required": [
"query"
]
},
"page": "/mcp-tools"
}getProductCountAnswer
Returns the total number of products displayed on the current page.
View tool JSON
{
"name": "getProductCount",
"kind": "answer",
"impl": "imperative",
"description": "Returns the total number of products displayed on the current page.",
"inputSchema": {
"type": "object",
"properties": {}
},
"page": "/mcp-tools"
}getProductDetailsAnswer
Get structured details (title, price, description, image URL) for a product by its index on the page (0-based).
View tool JSON
{
"name": "getProductDetails",
"kind": "answer",
"impl": "imperative",
"description": "Get structured details (title, price, description, image URL) for a product by its index on the page (0-based).",
"inputSchema": {
"type": "object",
"properties": {
"index": {
"type": "number",
"description": "Zero-based index of the product on the page"
}
},
"required": [
"index"
]
},
"page": "/mcp-tools"
}addToCartAction
Add a product to the shopping cart by clicking its Add to Cart button. Matches by product title.
View tool JSON
{
"name": "addToCart",
"kind": "act",
"impl": "imperative",
"description": "Add a product to the shopping cart by clicking its Add to Cart button. Matches by product title.",
"inputSchema": {
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Product title to add to cart"
}
},
"required": [
"title"
]
},
"page": "/mcp-tools"
}getPageInfoAnswer
Get metadata about the current page: URL, title, product count, and available navigation links.
View tool JSON
{
"name": "getPageInfo",
"kind": "answer",
"impl": "imperative",
"description": "Get metadata about the current page: URL, title, product count, and available navigation links.",
"inputSchema": {
"type": "object",
"properties": {}
},
"page": "/mcp-tools"
}