Skip to content

motus-v1.0.14

Choose a tag to compare

@github-actions github-actions released this 10 Jun 23:56
· 54 commits to main since this release

Motus's MCP server can now drive interfaces that the accessibility tree cannot see, and record what it does. A new set of coordinate tools gives agents trusted pointer input at exact viewport positions, the escape hatch for canvases, maps, editors, and other custom-rendered surfaces, while page video recording captures a session to a file with no external dependencies. Both arrive alongside viewport control for the whole session and quality-of-life fixes for uploads and tool discovery.

Improvements

  • Coordinate input tools - Six new tools (click_xy, hover_xy, move_xy, scroll_xy, drag, resize) interact at exact viewport coordinates with trusted browser input, so the browser's native hit testing decides what receives the event. Clicks support double-click, button choice, and modifier keys (Alt, Control, Meta, Shift); drag presses, emits intermediate moves, and releases, since drag libraries commonly require observed movement, and it accepts snapshot refs or raw coordinates for either end.
  • Snapshots hint at the coordinate workflow - When a page renders to a <canvas> or similar surface and exposes no addressable nodes, snapshot now says so explicitly and points to the coordinate tools, where perception shifts from the element tree to screenshots.
  • Page video recording - video_start and video_stop record the active page, following the same convention as traces and HARs: stopping finalizes the file and returns its path, and an omitted path is auto-generated under the temporary directory. Capture runs at the viewport's resolution and the output is MJPEG in an AVI container, written without external dependencies; most players open it directly, and ffmpeg converts it when another format is needed.
  • Session-wide recording with --record-video - Launch the server with --record-video <dir> and every page records for its whole life, one file per page, finalized when the page closes. No per-page tool calls required.
  • Viewport control - A new --viewport WIDTHxHEIGHT option sets the page size for the whole session (default 1280x800), headed windows are sized to match, and the resize tool changes the viewport mid-session when controls sit at or beyond its edge.
  • Engine API: video and modifier keys - The library gains IPage.StartVideoRecordingAsync/StopVideoRecordingAsync for programmatic recording, and mouse click and move options now carry modifier keys through CDP, so tests can hold Shift or Control during pointer input.
  • More reliable file uploads - Upload payloads are staged in per-page temporary directories that live until the page is disposed, so files passed to upload_files remain valid for the duration of the page that received them.
  • Setup troubleshooting - The MCP server guide now covers launch failures caused by the .NET global tools directory missing from PATH, including verifying with which motus and registering the server with an absolute path (claude mcp add motus -- "$HOME/.dotnet/tools/motus" mcp).

Sponsors

Thanks to @fluentfoundation and @fiVISION for supporting this project.