accessibility

package
v0.183.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package accessibility provides crash-isolated platform accessibility-tree access for the computer-use capability.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupported     = errors.New("accessibility tree is unsupported on this platform")
	ErrPermission      = errors.New("accessibility permission is not granted")
	ErrUnavailable     = errors.New("accessibility tree is unavailable")
	ErrElementNotFound = errors.New("accessibility element was not found")
)

Functions

func IsHelperProcess

func IsHelperProcess() bool

IsHelperProcess reports whether this process was launched as the isolated accessibility bridge. The CLI entry point checks this before constructing any services or presentation state.

func RunHelper

func RunHelper(input io.Reader, output io.Writer) (err error)

RunHelper serves one JSON request and writes one JSON response.

Types

type Provider

type Provider interface {
	Elements(ctx context.Context, target string) ([]computerdomain.UIElement, error)
	Press(ctx context.Context, target, label string) error
}

Provider reads and acts on the host accessibility tree.

func NewProvider

func NewProvider() Provider

NewProvider returns the platform provider. Native API calls are made only by a short-lived helper process, so a fatal foreign-library fault cannot terminate the CLI process.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL