smolagents-plasmate

March 26, 2026 ยท View on GitHub

Plasmate web browsing tool for HuggingFace Smolagents. Get clean semantic page content using 10-16x fewer tokens than Chrome.

Install

pip install smolagents-plasmate

Usage

from smolagents import CodeAgent, HfApiModel
from smolagents_plasmate import PlasmateFetchTool

agent = CodeAgent(tools=[PlasmateFetchTool()], model=HfApiModel())
agent.run("Fetch https://example.com and summarize the content")

What is Plasmate?

Plasmate is a lightweight web browsing engine for AI agents. It returns a Semantic Object Model (SOM) instead of raw HTML, reducing token usage by 10-16x compared to headless Chrome.

License

Apache 2.0


Part of the Plasmate Ecosystem

Engineplasmate - The browser engine for agents
MCPplasmate-mcp - Claude Code, Cursor, Windsurf
Extensionplasmate-extension - Chrome cookie export
SDKsPython / Node.js / Go / Rust
FrameworksLangChain / CrewAI / AutoGen / Smolagents
ToolsScrapy / Audit / A11y / GitHub Action
ResourcesAwesome Plasmate / Notebooks / Benchmarks
Docsdocs.plasmate.app
W3CWeb Content Browser for AI Agents