@agent-sh/computer-use-linux 0.7.54 → 0.7.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -69,7 +69,7 @@ The crate was extracted from [`codex-desktop-linux`](https://github.com/avifenes
69
69
  | | `setup_window_targeting` | Installs and enables the bundled GNOME Shell extension. GNOME Wayland needs it for exact window activation and move/resize; every GNOME session needs it for the on-screen indicator. |
70
70
  | **Discovery & observation** | `get_app_state` | Combined screenshot + compacted AT-SPI accessibility tree with stable `element_index` handles. Scope with `app_name_or_bundle_identifier` or a window target (`window_id`, `pid`, `app_id`, `wm_class`, `title`). |
71
71
  | | `get_tree_page` | Page through the latest cached tree by node offset, for trees too large to return inline when the host cannot read the spill file. Pass `snapshot_id` to refuse a page from a tree a later snapshot replaced. |
72
- | | `screenshot` | Bounded PNG or JPEG capture of the full desktop (`full_screen: true` or no target) or a raised and cropped target window (`window_id`, `pid`, `app_id`, `wm_class`, `title`, `raise_window`). |
72
+ | | `screenshot` | Bounded PNG or JPEG capture of the full desktop (`full_screen: true` or no target), a raised and cropped target window (`window_id`, `pid`, `app_id`, `wm_class`, `title`, `raise_window`), or one monitor (`monitor`, a 0-based index in reading order: rows of monitors top to bottom, each row left to right) at its own resolution, with its origin in the caption for click coordinates. |
73
73
  | | `list_windows` | Compositor windows with `window_id`, title, `app_id`, `wm_class`, PID, focus state, client type (`wayland`/`x11`), bounds, and terminal TTY/process metadata. |
74
74
  | | `focused_window` | The window currently holding keyboard focus. |
75
75
  | | `list_apps` | Running desktop applications visible to the AT-SPI registry. |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agent-sh/computer-use-linux",
3
- "version": "0.7.54",
3
+ "version": "0.7.55",
4
4
  "description": "Native Linux desktop control for AI agents (MCP server, Pi tools, and CLI): semantic AT-SPI accessibility trees, screenshots, compositor window targeting, Wayland/X11 input, and an on-screen activity indicator.",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",
@@ -7,9 +7,9 @@ export interface GeneratedMcpToolDefinition {
7
7
  annotations: Record<string, unknown>;
8
8
  }
9
9
 
10
- export const GENERATED_SERVER_VERSION = "0.7.54";
11
- export const GENERATED_TOOL_CATALOG_HASH = "03d66a3e0e8ee39a68fe551e1bfe6cfe99463ef8e3cdbbf53d8d6b501a8435ff";
12
- export const GENERATED_SHELL_TOOL_CATALOG_HASH = "12bfcef2bf761a9990ba46734fd6a93a54c04a39209bcf17e62eecc7441da87a";
10
+ export const GENERATED_SERVER_VERSION = "0.7.55";
11
+ export const GENERATED_TOOL_CATALOG_HASH = "f47dae31bbbba7640dc082d46a17bbf971947229891e7095a56a68fad91d81ba";
12
+ export const GENERATED_SHELL_TOOL_CATALOG_HASH = "5800fe7922c4dec6d5f77c7641d328a8065254c8890240adbcec8ae41b281db7";
13
13
  export const GENERATED_MCP_TOOLS =
14
14
  [
15
15
  {
@@ -1708,7 +1708,7 @@ export const GENERATED_MCP_TOOLS =
1708
1708
  "openWorldHint": true,
1709
1709
  "readOnlyHint": false
1710
1710
  },
1711
- "description": "Capture the screen and return it as a viewable, size-bounded image. Optionally target a window (window_id/pid/wm_class/title/app_id): the window is raised to the front and the image is cropped before any resize; outside Hyprland background mode, a target without known bounds is refused, so pass full_screen=true there. Returns the image plus a JSON caption with returned and coordinate dimensions, scale, format, quality, source, cropped_to_window, and window_title. The crop origin is not reported; use relative=true on click or scroll for window-relative input. Callers can request jpeg/quality for compression before resizing. Pass screenshot_file_path (an absolute path to a new file, stdio only; an existing path is refused) to save the image there instead: the result is then only the caption, with file_path.",
1711
+ "description": "Capture the screen and return it as a viewable, size-bounded image. Optionally target a window (window_id/pid/wm_class/title/app_id): the window is raised to the front and the image is cropped before any resize; outside Hyprland background mode, a target without known bounds is refused, so pass full_screen=true there. Pass monitor (a 0-based index in reading order: rows of monitors top to bottom, each row left to right) instead to capture one monitor at its own resolution, so a wide multi-monitor span is not shrunk to fit max_width; the caption then adds monitor, monitor_count, monitor_x and monitor_y, the monitor's origin in full-desktop click coordinates. Returns the image plus a JSON caption with returned and coordinate dimensions, scale, format, quality, source, cropped_to_window, and window_title. The crop origin is not reported; use relative=true on click or scroll for window-relative input. Callers can request jpeg/quality for compression before resizing. Pass screenshot_file_path (an absolute path to a new file, stdio only; an existing path is refused) to save the image there instead: the result is then only the caption, with file_path.",
1712
1712
  "inputSchema": {
1713
1713
  "$defs": {
1714
1714
  "ScreenshotOutputFormat": {
@@ -1776,6 +1776,15 @@ export const GENERATED_MCP_TOOLS =
1776
1776
  "null"
1777
1777
  ]
1778
1778
  },
1779
+ "monitor": {
1780
+ "default": null,
1781
+ "description": "Capture one monitor: its 0-based index in reading order. Monitors\nwhose vertical ranges overlap form a row; rows go top to bottom and\neach row left to right, so side-by-side monitors are numbered left to\nright even when they are not top-aligned. The desktop is captured and cropped to\nthat monitor before any resize, so a multi-monitor span is not shrunk\nto fit max_width. The caption reports monitor, monitor_count,\nmonitor_x and monitor_y, the monitor's origin in full-desktop\ncoordinates: image pixel (px, py) is click x = monitor_x + px / scale,\ny = monitor_y + py / scale. Not combined with a window target. Refused\nwhen the monitor layout cannot be read.",
1782
+ "minimum": 0,
1783
+ "type": [
1784
+ "integer",
1785
+ "null"
1786
+ ]
1787
+ },
1779
1788
  "pid": {
1780
1789
  "default": null,
1781
1790
  "description": "Process id. It must match exactly one window.",