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.
Links
License
Apache 2.0
Part of the Plasmate Ecosystem
| Engine | plasmate - The browser engine for agents |
| MCP | plasmate-mcp - Claude Code, Cursor, Windsurf |
| Extension | plasmate-extension - Chrome cookie export |
| SDKs | Python / Node.js / Go / Rust |
| Frameworks | LangChain / CrewAI / AutoGen / Smolagents |
| Tools | Scrapy / Audit / A11y / GitHub Action |
| Resources | Awesome Plasmate / Notebooks / Benchmarks |
| Docs | docs.plasmate.app |
| W3C | Web Content Browser for AI Agents |