You need to enable JavaScript to run this app.
Volcano Engine Function as a Service

Volcano Engine Function as a Service

Copy page
Download PDF
Browser Session
Using Browser MCP Server
Copy page
Download PDF
Using Browser MCP Server
This topic primarily describes the atomic operations on browsers and usage methods of Browser MCP Server provided by Volcano Engine Function as a Service (veFaaS).​
Feature description​
veFaaS provides Browser-Use MCP Server to enable browser automation capabilities. In addition, veFaaS provides Browser MCP Server that performs various atomic operations on browsers. This allows you to perform fine-grained management and operations on browsers, web elements, keyboards, forms, tabs, screenshots, and PDF generation.​
This topic primarily describes how to locally or remotely use a browser by using Browser MCP Server. The simple sample code is as follows:​
​
{​
"mcpServers": {​
"vefaas-browser": {​
"command": "npx",​
"args": [​
"@faas-mcp/browser@latest"​
]​
}​
}​
}​
​
The following table describes the parameters that you can add to the args field based on your business requirements.​
​
Parameter​
Description​
--allowed-origins <origins>​
The list of allowed origins for browser requests, which are separated by semicolons (;). By default, all origins are allowed.​
--blocked-origins <origins>​
The list of blocked origins for browser requests, which are separated by semicolons (;).​
  • The blocked origin list takes precedence over the allowed origin list.​
  • If the allowlist is not used, all the requests will be allowed except those sent from the sources in the blocklist.​
--block-service-workers​
Blocks service workers.​
--browser <browser>​
The browser or Chrome channel that you want to use. Valid values:​
  • chrome: Google Chrome browser​
  • firefox: Mozilla Firefox browser​
  • webkit: WebKit engine, which is used by Safari​
  • msedge: Microsoft Edge browser​
--caps <caps>​
The list of additional features to be enabled. The vision and pdf capabilities are supported and can be configured concurrently with commas (,) as separators.​
  • --caps vision,pdf: enables both visual and PDF features.​
  • --caps vision: only enables the visual feature.​
  • --caps pdf: only enables the PDF feature.​
--cdp-endpoint <endpoint>​
The endpoint of Customer Data Platform (CDP) to be connected.​
--config <path>​
The path of the browser configuration file. If you do not specify this parameter, the browser configuration information will be saved in the default configuration file path based on the installed browser and its version.​
--device <device>​
The device to be simulated. Example: iPhone 15.​
--executable-path <path>​
The path of the browser executable file.​
--headless​
After you specify this parameter, the browser will run in headless mode. If you do not specify this parameter, the browser will run in headed mode by default.​
--host <host>​
The host to which the server is bound, which is localhost by default. To bind to all network interfaces, you can set the value to 0.0.0.0.​
--ignore-https-errors​
Ignores HTTPS errors.​
--isolated​
Store the browser configuration file in memory instead of the disk.​
--image-responses <mode>​
Specifies whether to send an image response to the client. Valid values:​
  • allow: sends an image response. This value is used by default.​
  • omit: does not send an image response.​
--no-sandbox​
Disables the sandbox.​
--output-dir <path>​
The directory path of the output file.​
--port <port>​
The port on which the Server-Sent Events (SSE) protocol listens.​
--proxy-bypass <bypass>​
The list of domain names that bypass the proxy. The domain names are separated by commas (,), such as ".com,chromium.org,.domain.com".​
--proxy-server <proxy>​
Specify a proxy server, such as "http://myproxy:3128" and "socks5://myproxy:8080".​
--save-trace​
Save the Playwright traces of sessions to the output file directory.​
--storage-state <path>​
The path at which the storage status file is saved for isolated sessions.​
--user-agent <ua string>​
Specify a user agent string.​
--user-data-dir <path>​
The directory path of user data. If you do not specify this parameter, a temporary directory will be created.​
--viewport-size <size>​
Specify the viewport size of the browser in pixels. Example: "1280, 720".​
​
Usage methods​
You can use Browser MCP Server through the stdio (standard input & output) method.​
  • Invoke a remote browser​
  • ​
    {​
    "mcpServers": {​
    "vefaas-browser": {​
    "command": "npx",​
    "args": [​
    "@faas-mcp/browser@latest"​
    "--cdp-endpoint ws://sd1lqecn6rmou3g0tmej0.apigateway-cn-beijing.volceapi.com/v0.1/browsers/6f55a5c3-f495-4ea5-863e-55765abf0839/devtools/browser/3fc922d4-a668-412b-bdc3-46baa5018193?faasInstanceName=vefaas-ydej8hci-sq34afy9ap-d1rotceg68p2mudjluo0-sandbox"​
    ]​
    },​
    ]​
    }​
    ​
  • Invoke a local browser​
  • ​
    {​
    "mcpServers": {​
    "vefaas-browser": {​
    "command": "npx",​
    "args": [​
    "@faas-mcp/browser@latest"​
    ]​
    }​
    }​
    }​
    ​
Supported tools​
​
Interactive tools
Navigation tools
Resource-related tools
Utility tools
Tab-related tools
Testing tools
Visual pattern tool
​
​
Tool Name​
Description​
Parameter​
browser_snapshot​
Capture page structure for automation.​
None.​
browser_click​
Click the web page element.​
  • element: The element description​
  • ref: The element reference​
browser_drag​
Perform the drag-and-drop operation.​
  • startElement: The source element description​
  • startRef: The source element reference​
  • endElement: The target element description​
  • endRef: The target element reference​
browser_hover​
Move the pointer over the element.​
  • element: The element description​
  • ref: The element reference​
browser_type​
Enter text in the field.​
  • element: The element description​
  • ref: The element reference​
  • text: Text to be entered​
  • submit: Submit the text after entering.​
  • slowly: Enter the text character by character.​
browser_select_option​
Select options from a drop-down menu.​
  • element: The element description​
  • ref: The element reference​
  • values: The option to be selected​
browser_press_key​
Press a key on the keyboard.​
key: The name or character of a key​
browser_wait_for​
Wait until the conditions are met.​
  • time: The number of seconds to wait​
  • text: Text to appear​
  • textGone: Text to disappear​
browser_file_upload​
Upload the file.​
paths: The path to which the file is uploaded​
browser_handle_dialog​
Manage the dialog boxes of the browser.​
  • accept: Accept the dialog box.​
  • promptText: The prompt text​
​
Last updated: 2026.08.19 14:06:07