Node.js
import { Hyperbrowser } from "@hyperbrowser/sdk";
const client = new Hyperbrowser();
const discovery = await client.sessions.webmcp.listTools("session-id");from hyperbrowser import Hyperbrowser
client = Hyperbrowser()
discovery = client.sessions.webmcp.list_tools("session-id")curl --request GET \
--url https://api.hyperbrowser.ai/api/session/{id}/webmcp/tools \
--header 'x-api-key: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hyperbrowser.ai/api/session/{id}/webmcp/tools",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.hyperbrowser.ai/api/session/{id}/webmcp/tools"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.hyperbrowser.ai/api/session/{id}/webmcp/tools")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hyperbrowser.ai/api/session/{id}/webmcp/tools")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"tools": [
{
"toolRef": "<string>",
"name": "<string>",
"description": "<string>",
"annotations": {
"readOnly": true,
"untrustedContent": true,
"consequential": true,
"autosubmit": true,
"destructive": true,
"idempotent": true,
"openWorld": true
},
"declarative": true,
"source": {
"provider": "native",
"tabId": "<string>",
"pageUrl": "<string>",
"pageTitle": "<string>",
"frame": {
"id": "<string>",
"url": "<string>",
"isMainFrame": true
}
},
"title": "<string>",
"inputSchema": {},
"outputSchema": {},
"backendNodeId": 123
}
],
"nativeSupported": true,
"truncated": true
}{
"message": "<string>",
"error": "<string>",
"code": "<string>",
"invocationId": "<string>"
}{
"message": "<string>",
"error": "<string>",
"code": "<string>",
"invocationId": "<string>"
}{
"message": "<string>",
"error": "<string>",
"code": "<string>",
"invocationId": "<string>"
}{
"message": "<string>",
"error": "<string>",
"code": "<string>",
"invocationId": "<string>"
}{
"message": "<string>",
"error": "<string>",
"code": "<string>",
"invocationId": "<string>"
}{
"message": "<string>",
"error": "<string>",
"code": "<string>",
"invocationId": "<string>"
}{
"message": "<string>",
"error": "<string>",
"code": "<string>",
"invocationId": "<string>"
}{
"message": "<string>",
"error": "<string>",
"code": "<string>",
"invocationId": "<string>"
}{
"message": "<string>",
"error": "<string>",
"code": "<string>",
"invocationId": "<string>"
}WebMCP
List WebMCP tools
Discover tools across open tabs and frames.
GET
/
api
/
session
/
{id}
/
webmcp
/
tools
Node.js
import { Hyperbrowser } from "@hyperbrowser/sdk";
const client = new Hyperbrowser();
const discovery = await client.sessions.webmcp.listTools("session-id");from hyperbrowser import Hyperbrowser
client = Hyperbrowser()
discovery = client.sessions.webmcp.list_tools("session-id")curl --request GET \
--url https://api.hyperbrowser.ai/api/session/{id}/webmcp/tools \
--header 'x-api-key: <api-key>'<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hyperbrowser.ai/api/session/{id}/webmcp/tools",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.hyperbrowser.ai/api/session/{id}/webmcp/tools"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.hyperbrowser.ai/api/session/{id}/webmcp/tools")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hyperbrowser.ai/api/session/{id}/webmcp/tools")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"tools": [
{
"toolRef": "<string>",
"name": "<string>",
"description": "<string>",
"annotations": {
"readOnly": true,
"untrustedContent": true,
"consequential": true,
"autosubmit": true,
"destructive": true,
"idempotent": true,
"openWorld": true
},
"declarative": true,
"source": {
"provider": "native",
"tabId": "<string>",
"pageUrl": "<string>",
"pageTitle": "<string>",
"frame": {
"id": "<string>",
"url": "<string>",
"isMainFrame": true
}
},
"title": "<string>",
"inputSchema": {},
"outputSchema": {},
"backendNodeId": 123
}
],
"nativeSupported": true,
"truncated": true
}{
"message": "<string>",
"error": "<string>",
"code": "<string>",
"invocationId": "<string>"
}{
"message": "<string>",
"error": "<string>",
"code": "<string>",
"invocationId": "<string>"
}{
"message": "<string>",
"error": "<string>",
"code": "<string>",
"invocationId": "<string>"
}{
"message": "<string>",
"error": "<string>",
"code": "<string>",
"invocationId": "<string>"
}{
"message": "<string>",
"error": "<string>",
"code": "<string>",
"invocationId": "<string>"
}{
"message": "<string>",
"error": "<string>",
"code": "<string>",
"invocationId": "<string>"
}{
"message": "<string>",
"error": "<string>",
"code": "<string>",
"invocationId": "<string>"
}{
"message": "<string>",
"error": "<string>",
"code": "<string>",
"invocationId": "<string>"
}{
"message": "<string>",
"error": "<string>",
"code": "<string>",
"invocationId": "<string>"
}See the WebMCP guide for SDK examples and invocation lifecycle details.
Was this page helpful?
⌘I