@herd/browser
A Herd trail for interacting with your browser's tabs and extracting content, html, markdown, seo data...

What is Herd?
Herd is a powerful browser automation platform that lets you connect any AI like ChatGPT, Claude, or even Cursor to your favorite websites. This Trail is a pre-built automation. An MCP (Model Context Protocol) server exposes standard tools to your Agent to read from and interact with your browser securely.
- seo: Extracts comprehensive SEO data from a browser tab
- data: Extracts structured data from a browser tab
- html: Extracts HTML from a browser tab
Trail Details
Quick Actions - MCP compatible
Installation and Usage
Quick Run
SDK Implementation
Available Actions
All the following actions for @herd/browser are accessible via the built-in MCP server, CLI, REST API as well as programmatically via the SDK.
seo
Extracts comprehensive SEO data from a browser tab
Parameters
Name | Type | Description | Required |
---|---|---|---|
toc |
Boolean |
Whether to extract table of contents | No |
url |
String |
URL of the page to extract content from (required when target is 'url') | No |
target |
String |
Target tab selection: 'current', 'url', or 'all' | No |
data
Extracts structured data from a browser tab
Parameters
Name | Type | Description | Required |
---|---|---|---|
url |
String |
URL of the page to extract data from (required when target is 'url') | No |
target |
String |
Target tab selection: 'current', 'url', or 'all' | No |
selection |
Object |
A Herd selection to extract data from specific elements. See https://herd.garden/docs/data-extraction | Yes |
html
Extracts HTML from a browser tab
Parameters
Name | Type | Description | Required |
---|---|---|---|
url |
String |
URL of the page to extract HTML from (required when target is 'url') | No |
target |
String |
Target tab selection: 'current', 'url', or 'all' | No |
selector |
String |
CSS selector to extract HTML from specific elements | No |
compression |
String |
Level of HTML compression to apply (reduces up to 90% of the HTML token count without critical information loss) | No |
content
Extracts basic text content from a browser tab
Parameters
Name | Type | Description | Required |
---|---|---|---|
url |
String |
URL of the page to extract content from (required when target is 'url') | No |
target |
String |
Target tab selection: 'current', 'url', or 'all' | No |
selector |
String |
CSS selector to extract content from specific elements | No |
markdown
Converts HTML from a browser tab to Markdown
Parameters
Name | Type | Description | Required |
---|---|---|---|
url |
String |
URL of the page to extract content from (required when target is 'url') | No |
target |
String |
Target tab selection: 'current', 'url', or 'all' | No |
options |
Object |
Options for HTML to Markdown conversion | No |
selector |
String |
CSS selector to extract HTML from specific elements | No |