Skip to content

Add complete desktop input primitives for computer use #22

Closed

Description

@ElbertePlinio

Parent: #17

Goal

Complete PickLab's visual desktop input surface so agents can drive native apps, canvas-heavy pages, and headed Chrome without relying only on semantic browser tools.

Scope

Add CLI and MCP support for:

  • desktop_move(x, y) — mouse move/hover
  • desktop_scroll(deltaX, deltaY, x?, y?)
  • desktop_drag(fromX, fromY, toX, toY, button=1, durationMs?)
  • desktop_double_click(x, y, button=1, intervalMs?)

Scroll deltas are integer wheel steps:

  • positive Y: down
  • negative Y: up
  • positive X: right
  • negative X: left

All commands remain argv-array based with no shell interpolation. Browser sessions with a desktop capability must support the same tools. The later supervision slice will route these actions through its input-permit guard.

Non-goals

  • OCR or visual element detection
  • Clipboard synchronization
  • Touch gestures or Android input changes
  • Human takeover controls

Checklist

  • Exact xdotool argv builders and validation
  • Desktop Linux implementations
  • CLI commands
  • MCP tools
  • Desktop-capability session targeting
  • Unit, CLI, and MCP tests
  • README and docs/releases/UNRELEASED.md
  • PR/review

Validation

  • bun run typecheck
  • focused desktop/CLI/MCP tests
  • bun run test
  • bun run test:coverage
  • exact argv tests for direction, ordering, timing, coordinates, buttons, and durations
  • shell-metacharacter inputs never reach a shell
  • live Xvfb smoke covering move, scroll, drag, and double-click

No feature flag: this is independently releasable and preserves current defaults.

Current status: Planned
Next: implement as an independent slice before the final browser computer-use integration.

Activity

  1. ElbertePlinio commented on Jul 12, 2026

    @ElbertePlinio
    MemberAuthor

    Implementation started:

    • Desktop move/hover, scroll, drag, and double-click
    • CLI/MCP surfaces and live Xvfb validation included

    Branch: feat/desktop-input-parity
    Current status: In progress

  2. ElbertePlinio commented on Jul 12, 2026

    @ElbertePlinio
    MemberAuthor

    PR opened: #25

    • Move/hover, scroll, drag, double-click
    • CLI and MCP surfaces
    • Live Xvfb integration
    • Full tests, coverage, and build green
    • Automatic Codex review and CI

    Current status: In review

  3. ElbertePlinio commented on Jul 12, 2026

    @ElbertePlinio
    MemberAuthor

    Review update:

    • CI green on current HEAD
    • Codex review clean on current HEAD
    • Isolated visual verification: scroll moved terminal history, drag selected text, move/double-click executed, session cleanup succeeded

    PR: #25
    Current status: Review-clean, left open (not merged)

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions