Trail Hub / @herd / browser
H

@herd/browser

@herd
33 downloads

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

Trail Details

Selected Version
v1.0.3 (4 versions available)
Published By
Herd (@herd)
Last Updated
4/6/2025
Downloads
33

Quick Actions - MCP compatible

Install Herd browser extension to connect your AI tools.

Installation and Usage

Quick Run

herd trail server @herd/browser

SDK Implementation

Usage Example
import { HerdClient } from '@monitoro/herd';

// Initialize Herd client (use your own API key)
const herd = new HerdClient({ token: 'YOUR_HERD_API_KEY' });

// Run the 'seo' action
const result = await herd.runTrail('@herd/browser@1.0.3', {
	actionName: 'seo',
	params: {
		// toc: "Boolean",
	// url: "String",
	// target: "String"

	}
});

console.log('Trail result:', result);

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