accessibility

package
v0.192.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2026 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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