Mcprune
Prunes Playwright accessibility snapshots to significantly reduce token count for LLM agents, preserving essential interactive elements and references.
Addressing the challenge of large Playwright accessibility snapshots, mcprune serves as a middleware proxy that dramatically reduces token count (75-95%) before they reach LLM agents. By intercepting and intelligently pruning browser snapshots through a 9-step, rule-based pipeline, it filters out extraneous details while preserving critical information like interactive elements, prices, and clickable references. This zero-ML solution ensures LLM agents receive concise, actionable browser context, enabling more effective and economical web interactions within their limited context windows.
主な機能
01Utilizes a 9-step, rule-based pruning pipeline (Zero ML)
02Offers multiple pruning modes (act, browse, navigate, full) for diverse use cases
030 GitHub stars
04Achieves 75-95% token reduction for Playwright accessibility snapshots
05Implements context-aware pruning based on agent search queries
06Preserves all interactive elements and clickable references for agent actions
ユースケース
01Optimizing LLM agent interactions for e-commerce shopping and form completion
02Streamlining content consumption for agents browsing documentation or articles
03Enhancing efficiency for AI agents performing site exploration and navigation