chrome_get_web_content
Fetch HTML or visible text from the current browser page or a specified URL, optionally limited to one element via CSS selector.
Instructions
Get HTML and text content from the current page or a specific URL. If you want to get text content of one element without html tags , set textContent to be true.Otherwise, set htmlContent to be true to get html content. Noted, to get text content of whole page is not yet supported.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"envId": "<envId>"
},
"name": "chrome_get_web_content"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | URL to fetch content from. If not provided, uses the current active page | |
| envId | Yes | Environment ID for the browser environment to operate. | |
| selector | No | CSS selector to get content from a specific element. If provided, only content from this element will be returned | |
| htmlContent | No | Get the visible HTML content of the page. If true, textContent will be ignored (default: false) | |
| textContent | No | Get the visible text content of the page with metadata. Ignored if htmlContent is true (default: true) |