Versions in this module Expand all Collapse all v0 v0.2.0 Nov 22, 2026 v0.1.0 Sep 6, 2026 Changes in this version + const Click + const ClickElement + const ClickNormalized + const DoubleClick + const Drag + const Key + const Move + const Prefix + const Screenshot + const Scroll + const Type + const Wait + func IsAction(name string) bool + func IsReflexAction(name string) bool + func Names() []string + func Specs(target Target, dispatcher action.Dispatcher, ...) ([]action.ToolSpec, error) + func TargetPolicy(target Target) action.PolicyDecision + type Definition struct + DefaultConfirm action.Confirm + Description string + Name string + Parameters json.RawMessage + func Definitions() []Definition + func DefinitionsFor(target Target) ([]Definition, error) + func Lookup(name string) (Definition, bool) + type Dispatcher struct + func NewDispatcher(config DispatcherConfig) (*Dispatcher, error) + func (dispatcher *Dispatcher) Dispatch(ctx context.Context, call trajectory.ToolCall) (trajectory.ToolResult, error) + func (dispatcher *Dispatcher) Name() string + func (dispatcher *Dispatcher) Records() []Record + type DispatcherConfig struct + Audit func(Record) + MaxWait time.Duration + Now func() uint64 + Surface Surface + Target Target + type ElementSurface interface + ClickElement func(ctx context.Context, elementID string) error + type Record struct + Arguments string + AtNS uint64 + CallID string + Error string + Name string + Source string + Target string + type Surface interface + Click func(ctx context.Context, x, y int, button string) error + DoubleClick func(ctx context.Context, x, y int) error + Drag func(ctx context.Context, fromX, fromY, toX, toY int) error + Key func(ctx context.Context, keys []string) error + Move func(ctx context.Context, x, y int) error + Name func() string + Screenshot func(ctx context.Context) error + Scroll func(ctx context.Context, x, y, deltaX, deltaY int) error + Type func(ctx context.Context, text string) error + type Target struct + Height int + Name string + Sources []string + Width int + func (target Target) Owns(source string) bool + func (target Target) Validate() error