AttachDesk
v1.0.1See and control your remote computers and pass messages between agents with AttachDesk.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
jrd_health
Confirm the AttachDesk app is running and the local MCP control server responds. Returns the app version (jrd_version), the version of this MCP server (mcp_version) and the control file location.
jrd_version
Return the version of the locally running AttachDesk app.
jrd_auth_status
Whether the AttachDesk app is signed in, and this computer's identity. registered_device_id is the id this computer has in jrd_list_devices.
jrd_connection_status
Current connection state of the local JRD: idle, connecting, connected, or failed. Includes peer device info if a session is active.
jrd_read_log
Read the tail of the local JRD app.log. Useful for diagnosing connect failures, React errors, or relay handshake issues.
| Parameter | Type | Description |
|---|---|---|
filter | string | Optional substring; only lines containing this string are returned (case-sensitive). |
lines | number | How many trailing lines to return (default 200, max 5000). |
jrd_telemetry
Return the latest input-latency / roundtrip telemetry snapshot from the running JRD app. Includes viewer-perceived input roundtrip percentiles (p50/p95/p99/p99.9 in microseconds) and host-side wire-arrival → inject latency. Useful for diagnosing 'why does the remote feel laggy?' — distinguishes network roundtrip from host injection cost.
jrd_list_displays
Enumerate the local machine's displays. Returns each display's index, width, and height.
jrd_screenshot
Capture a screenshot of THIS computer, the one the AttachDesk app and this server run on, and return it inline as an image. To see the computer you are connected to, use jrd_remote_screenshot instead. Default JPEG at quality 85, max width 1600, which keeps the payload small enough for MCP transports.
| Parameter | Type | Description |
|---|---|---|
display | number | Display index to capture (default 0 = primary). |
format | string | Output format. JPEG is ~10x smaller for desktop content. |
max_width | number | Optional max width in pixels. Image is downscaled preserving aspect ratio. Default 1600 to keep MCP payloads manageable. |
quality | number | JPEG quality 1-100 (ignored for PNG). |
jrd_list_devices
List the devices registered to the user's account that the local JRD can connect to. Each entry includes device_id (UUID for jrd_connect), human-readable device_code (JAG-XXXX-XXXX-XXXX), name, platform, and online/availability flags.
jrd_connect
Initiate a remote-control session from the local JRD to another device. Pass the server-side UUID returned by jrd_list_devices in `device_id`. Blocks until the session is established (up to ~30s) and returns the session info.
| Parameter | Type | Description |
|---|---|---|
device_id * | string | Server-side UUID of the target device (from jrd_list_devices). |
jrd_disconnect
Disconnect the local JRD's current session. If `session_id` is given, only that session is removed; otherwise all sessions are cleared and the connection status drops to disconnected.
| Parameter | Type | Description |
|---|---|---|
session_id | string | Optional UUID of a specific session to disconnect. |
jrd_mouse_move
Move the mouse on the remote computer of the open session. x and y are pixels of the remote picture (the size jrd_remote_screenshot reports as remote_width and remote_height) unless `relative` is true. Pass from_screenshot: true when they were read from a reduced remote screenshot. Requires an open session where this computer is the viewer.
| Parameter | Type | Description |
|---|---|---|
x * | number | X coordinate (px), absolute or relative. |
y * | number | Y coordinate (px), absolute or relative. |
from_screenshot | boolean | Set true when x and y were read from the last jrd_remote_screenshot picture. They are scaled to the remote screen for you. |
relative | boolean | If true, treat (x, y) as a delta from the cursor's current position. |
jrd_mouse_click
Click a mouse button on the remote computer of the open session. Default is press and release. x and y are pixels of the remote picture; pass from_screenshot: true when they were read from a reduced jrd_remote_screenshot picture. Use `press_only` / `release_only` for drag-style interactions. Requires an open session where this computer is the viewer.
| Parameter | Type | Description |
|---|---|---|
button * | string | Which mouse button to click. |
from_screenshot | boolean | Set true when x and y were read from the last jrd_remote_screenshot picture. They are scaled to the remote screen for you. |
press_only | boolean | Send only mouse-down (start of a drag). Default false. |
release_only | boolean | Send only mouse-up (end of a drag). Default false. |
x | number | Optional X coord — if omitted, click at current cursor position. |
y | number | Optional Y coord — if omitted, click at current cursor position. |
jrd_mouse_scroll
Scroll the mouse wheel on the peer. Positive delta_y scrolls up, negative delta_y scrolls down. One wheel notch is typically 120. Optional x/y positions the scroll target first.
| Parameter | Type | Description |
|---|---|---|
delta_x | number | Horizontal wheel delta. Positive scrolls right, negative left. |
delta_y | number | Vertical wheel delta. Positive scrolls up, negative down. |
from_screenshot | boolean | Set true when x and y were read from the last jrd_remote_screenshot picture. They are scaled to the remote screen for you. |
x | number | Optional X coord for the scroll target. |
y | number | Optional Y coord for the scroll target. |
jrd_mouse_drag
Drag on the peer like a human: mouse down at from_x/from_y, move in steps to to_x/to_y, then release. Useful for sliders, selections, window moves, and drag/drop within the remote screen.
| Parameter | Type | Description |
|---|---|---|
from_x * | number | Drag start X coordinate. |
from_y * | number | Drag start Y coordinate. |
to_x * | number | Drag end X coordinate. |
to_y * | number | Drag end Y coordinate. |
button | string | Mouse button to hold during the drag. |
duration_ms | number | Approximate drag duration in milliseconds, clamped 0-10000. |
from_screenshot | boolean | Set true when the start and end points were read from the last jrd_remote_screenshot picture. They are scaled to the remote screen for you. |
steps | number | Number of intermediate move events, clamped 1-100. |
jrd_keyboard
Send keystrokes to the peer. In `combo` mode (default), `keys` is one or more key combos separated by whitespace, e.g. "ctrl+alt+t" or "ctrl+s ctrl+w". In `type` mode, `keys` is literal text. In `down`/`up` mode, hold or release a single key combo. Requires an active viewer session.
| Parameter | Type | Description |
|---|---|---|
keys * | string | Either key-combo string(s) (`ctrl+alt+Delete`) or, in type mode, the literal text to type. |
mode | string | How to interpret `keys`. `combo` = key combos / shortcuts. `type` = literal text. `down`/`up` = hold or release one combo. |
jrd_set_monitor
Switch the active monitor on the current remote-control session. The host streams the monitor at the given index. Requires an active session.
| Parameter | Type | Description |
|---|---|---|
index * | number | Zero-based monitor index on the host machine. |
jrd_get_settings
Read the local JRD's full AppSettings: quality preset, FPS limit, audio toggles, network options, security flags, theme, etc. Use jrd_set_settings to change individual fields.
jrd_set_settings
Update one or more JRD settings. Pass a partial JSON object — only the fields you include are changed (e.g. `{ "fps_limit": 60, "quality": "high" }`). The server merges your patch into the live settings, persists to disk, and returns the merged result. Note: `start_with_system` is intentionally ignored over MCP to avoid surprising autostart side effects.
| Parameter | Type | Description |
|---|---|---|
patch * | object | Subset of AppSettings fields to update. Use jrd_get_settings first to see all available keys. |
jrd_remote_screenshot
Return a picture of the REMOTE computer's screen from the open session, exactly as the viewer is drawing it. Use this to see what is on the computer you are connected to; jrd_screenshot captures this computer instead. Needs an open session where this computer is the viewer (jrd_connect) with the session view showing in the AttachDesk window. The reply states the picture size and the remote size. To click a spot you see, pass its x and y with from_screenshot: true to jrd_mouse_click, jrd_mouse_move, jrd_mouse_scroll or jrd_mouse_drag. Fails with a clear message when no session is open or the fi…
| Parameter | Type | Description |
|---|---|---|
format | string | jpeg (default) is much smaller. Use png when small text must stay sharp. |
max_width | number | Reduce the picture to at most this many pixels wide. Default 1280, which most models read without resizing it again. Pass 0 for the full remote size. |
quality | number | JPEG quality 1 to 100 (ignored for png). Default 80. |
jrd_send_text
Type a line of text into the remote computer in one call. Use when you want to send text to another computer, for example a request typed into a window that is already focused there. Give `device` (a name or device_id from jrd_list_devices) to open a session first when none is open; omit it to use the open session. The text goes to whatever has keyboard focus on the remote computer and looks the same as the owner typing, so say who you are in the text. Set press_enter to send the Enter key afterwards. To talk to an agent on that computer without typing into its screen, use jrd_message_send ins…
| Parameter | Type | Description |
|---|---|---|
text * | string | The text to type on the remote computer. |
device | string | Name, device code or device_id of the computer to type on. Optional when a session is already open. |
press_enter | boolean | Press Enter after the text. Default false. |
jrd_message_send
Send a message to an agent on another of the owner's computers. Use this to hand over work, ask a question or report back without opening a remote session or typing into a screen. The message is delivered through the owner's AttachDesk account, only between computers on that account, and the receiving agent reads it with jrd_message_read. It records which computer sent it; set `label` to say which agent you are. Fails when the other computer is not on this account or does not have AI control turned on.
| Parameter | Type | Description |
|---|---|---|
text * | string | The message, up to 8000 characters. |
to * | string | Name, device code or device_id of the computer to send to (see jrd_list_devices). |
label | string | Who is sending, shown to the reader, for example "Claude on the laptop". Up to 80 characters. |
jrd_message_read
Read messages that agents on the owner's other computers sent to this computer with jrd_message_send. Returns the unread messages, oldest first, each with the sending computer's name, its label and the time, and marks them read. Set wait_seconds to wait for a message to arrive instead of returning an empty list at once; call it again to keep waiting. Pass `after` (a message id) to read again everything newer than that id.
| Parameter | Type | Description |
|---|---|---|
after | number | Return every message with an id above this one, read or not. |
wait_seconds | number | Wait up to this many seconds for a message when none is unread. 0 to 50, default 0. |
jrd_wait_for_text
Poll the local screen with OCR and return when the given text appears, or timeout. Useful for waiting on a dialog, button, or label to render before driving the UI further. Uses tesseract.js (English). Pass a `region` to drastically speed up OCR by limiting the searched area.
| Parameter | Type | Description |
|---|---|---|
text * | string | Substring to wait for in the OCR result. |
case_sensitive | boolean | Match case-sensitively (default false). |
display | number | Display index to capture (default 0 = primary). |
poll_interval_ms | number | Delay between OCR polls in ms (default 1000, min 250). |
region | object | Optional crop {x, y, w, h} (px in screen space) to limit OCR — much faster than full-screen. |
timeout_ms | number | Max time to wait in ms (default 30000, max 300000). |
jrd_find_element
Locate the (x, y) center of a UI element on the local screen by its visible text label. Runs OCR (tesseract.js) and returns word-level bounding boxes. Set `fuzzy: true` to allow ~85% similarity matches (handles OCR noise). Use `nth` to pick among multiple matches.
| Parameter | Type | Description |
|---|---|---|
text * | string | Visible text on the element (e.g. "Submit", "OK", "File"). |
case_sensitive | boolean | Match case-sensitively (default false). |
display | number | Display index to capture (default 0). |
fuzzy | boolean | Allow ~85% similarity match instead of exact substring (default false). |
nth | number | Return the Nth matching element (1-indexed, default 1). |
jrd_execute_shell
DESTRUCTIVE: Execute an arbitrary shell command on the LOCAL machine where the JRD desktop app runs. This can read, modify, or delete any file the user can; install software; or alter system state. The command runs with the privileges of the JRD desktop process. Treat with extreme caution — only invoke when explicitly asked, and always show the user the exact command first. Output is captured (stdout + stderr) and capped at 64 KB per stream. The child is killed (SIGTERM, then SIGKILL) on timeout.
| Parameter | Type | Description |
|---|---|---|
command * | string | The shell command (or argv string when shell=false) to execute. |
cwd | string | Optional working directory to run the command in. |
env | object | Optional extra environment variables merged into the child env. |
shell | boolean | Run via the system shell so pipes/redirects/glob work (default true). Set false for argv-style. |
timeout_ms | number | Kill the child after this many ms (default 30000, max 300000). |
jrd_watch_region
Poll a screen region and return as soon as enough pixels have changed vs. the baseline (or timeout). Useful for waiting on visual events: a spinner finishing, a notification appearing, content loading. Uses RGB diff with a per-channel threshold of 8.
| Parameter | Type | Description |
|---|---|---|
region * | object | Region to watch {x, y, w, h} in screen pixels. |
display | number | Display index to capture (default 0). |
poll_interval_ms | number | Delay between screenshots in ms (default 500, min 100). |
threshold | number | Percentage of pixels (0-100) that must differ for the region to count as changed (default 5). |
timeout_ms | number | Max time to wait in ms (default 60000, max 600000). |
jrd_clipboard
Read or write the local machine's clipboard via the JRD desktop app. Requires JRD app v0.10.0+ with /v1/clipboard endpoints; older builds will return an HTTP error.
| Parameter | Type | Description |
|---|---|---|
mode * | string | Read current clipboard text, or overwrite it. |
text | string | Text to write (required when mode = 'write'). |