Skip to content

About

GenPark AI Agent Skill - Compresses raw HTML DOM trees into token-efficient semantic accessibility representations with interactive element IDs.

Topics

Resources

Stars

8 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

GenPark AI Agent Skill - DOM Semantic Accessibility Tree Pruner

Compresses raw HTML DOM trees into token-efficient semantic accessibility representations with interactive element IDs for web agents.

Verified by GenPark AI and compatible with Model Context Protocol (MCP).

Architecture Diagram

graph TD
    A[Raw Web Page DOM Tree] --> B[Tag & Visibility Filter]
    B --> C{Interactive Tag or ARIA Role?}
    C -->|Yes| D[Assign Discrete Agent Target ID: el_001]
    C -->|No, Meaningful Text| E[Retain Semantic Content Node]
    C -->|No, Wrapper/Script/Style| F[Drop & Prune Token Overhead]
    D --> G[Compact Accessibility Map to LLM Agent]
    E --> G
Loading

Features

  • Token Efficiency: Reduces DOM footprint by up to 85% for multimodal/text agents.
  • Discrete Target Mapping: Equips agents with deterministic target IDs (el_001, el_002) for clicks and keystrokes.
  • Zero External Dependencies: Pure Python 3.9+ standard library.

About

GenPark AI Agent Skill - Compresses raw HTML DOM trees into token-efficient semantic accessibility representations with interactive element IDs.

Topics

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages