Predicate Snapshot Engine for Openclaw

An ML-powered DOM pruning engine that reduces browser prompt tokens by 95% for more efficient AI agents.

rcholic
v0.4.0
Feb 26, 2026
1
1.3k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install predicate-snapshot

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install predicate-snapshot using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Predicate Snapshot Engine?

Predicate Snapshot Engine is a sophisticated tool designed to optimize how AI agents interact with the web. As part of the wider ecosystem of Openclaw Skills, it addresses the challenge of DOM noise by using machine learning to rank elements by importance. This allows developers to feed their models only the most relevant data, resulting in faster inference times and significantly lower operational costs.

By prioritizing actionable elements like buttons and input fields while discarding decorative fluff, this skill ensures that agents remain focused and accurate. Whether you are building complex web scrapers or autonomous browsing agents, integrating this into your Openclaw Skills library provides a massive performance boost over standard accessibility trees.

Predicate Snapshot Engine Use Cases

  • Drastically lowering token consumption in browser-based LLM workflows.
  • Increasing the success rate of autonomous agents navigating complex web interfaces.
  • Improving the speed of browser automation tasks within Openclaw Skills.
  • Filtering out noise from modern, element-heavy web applications like dashboards and stores.

How Predicate Snapshot Engine Works

  1. The user triggers a snapshot command while the agent is active on a target webpage.
  2. The skill analyzes the current DOM state using either local heuristics or the Predicate ML API.
  3. Elements are ranked and scored based on their functional importance and signal quality.
  4. A compact, pipe-delimited snapshot is returned to the agent, containing only the top-ranked elements.
  5. The agent utilizes the provided element IDs to perform precise actions like clicking, scrolling, or typing.

Predicate Snapshot Engine Setup

To get started with this addition to your Openclaw Skills, run the following command:

npx clawdhub@latest install predicate-snapshot

For ML-powered ranking, obtain an API key from predicate.systems and set it in your environment or configuration file:

export PREDICATE_API_KEY="sk-..."

Predicate Snapshot Engine Data Schema & Taxonomy

The skill generates a condensed data table optimized for LLM readability. The schema follows a specific taxonomy:

Column Description
ID Unique identifier for targeting actions
role The HTML or ARIA role (e.g., button, link)
text The visible label or text content
imp Importance score (0.0 to 1.0)
is_primary Boolean indicating if the element is a primary action
docYq The vertical coordinate on the document
ord Ordinal ranking for list-based items
DG Data Grouping identifier for related elements
href The target URL for link elements

Predicate Snapshot Engine Advanced Features

  • Local heuristic fallback mode for cost-free DOM pruning without an API key.
  • Adjustable element limits to fine-tune the balance between context and token usage.
  • Support for ordinal ranking to help agents process search results and product lists.
  • Integrated action dispatcher that maps internal element IDs to browser driver commands.
  • Configurable session-based credit limits for enterprise-grade Openclaw Skills deployments.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*