Skip to content

AI Agent Support: Page Introspection API #54

Description

@Rasukarusan

Summary

Add functions that let AI understand the overall page structure. This is the most important change for AI agent support.

Priority: Highest

Current Problem

There is no way for AI to get an overview of the page. find_element assumes the caller already knows the selector.

AI needs a way to discover "what is on this page."

Proposal

get_clickable_elements     # List of clickable elements (a, button, input[type=submit], etc.)
get_form_fields            # List of form fields (name, type, placeholder, etc.)
get_page_summary           # Title + URL + main text + links as JSON
get_element_info "$element"  # All attributes of a single element as JSON

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions