AttachDesk

v1.0.1
com.attachdesk/attachdesk Checked 1 day ago Published 20 days ago

See 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.

ParameterTypeDescription
filterstringOptional substring; only lines containing this string are returned (case-sensitive).
linesnumberHow 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.

ParameterTypeDescription
displaynumberDisplay index to capture (default 0 = primary).
formatstringOutput format. JPEG is ~10x smaller for desktop content.
max_widthnumberOptional max width in pixels. Image is downscaled preserving aspect ratio. Default 1600 to keep MCP payloads manageable.
qualitynumberJPEG 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.

ParameterTypeDescription
device_id *stringServer-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.

ParameterTypeDescription
session_idstringOptional 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.

ParameterTypeDescription
x *numberX coordinate (px), absolute or relative.
y *numberY coordinate (px), absolute or relative.
from_screenshotbooleanSet true when x and y were read from the last jrd_remote_screenshot picture. They are scaled to the remote screen for you.
relativebooleanIf 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.

ParameterTypeDescription
button *stringWhich mouse button to click.
from_screenshotbooleanSet true when x and y were read from the last jrd_remote_screenshot picture. They are scaled to the remote screen for you.
press_onlybooleanSend only mouse-down (start of a drag). Default false.
release_onlybooleanSend only mouse-up (end of a drag). Default false.
xnumberOptional X coord — if omitted, click at current cursor position.
ynumberOptional 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.

ParameterTypeDescription
delta_xnumberHorizontal wheel delta. Positive scrolls right, negative left.
delta_ynumberVertical wheel delta. Positive scrolls up, negative down.
from_screenshotbooleanSet true when x and y were read from the last jrd_remote_screenshot picture. They are scaled to the remote screen for you.
xnumberOptional X coord for the scroll target.
ynumberOptional 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.

ParameterTypeDescription
from_x *numberDrag start X coordinate.
from_y *numberDrag start Y coordinate.
to_x *numberDrag end X coordinate.
to_y *numberDrag end Y coordinate.
buttonstringMouse button to hold during the drag.
duration_msnumberApproximate drag duration in milliseconds, clamped 0-10000.
from_screenshotbooleanSet 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.
stepsnumberNumber 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.

ParameterTypeDescription
keys *stringEither key-combo string(s) (`ctrl+alt+Delete`) or, in type mode, the literal text to type.
modestringHow 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.

ParameterTypeDescription
index *numberZero-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.

ParameterTypeDescription
patch *objectSubset 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…

ParameterTypeDescription
formatstringjpeg (default) is much smaller. Use png when small text must stay sharp.
max_widthnumberReduce 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.
qualitynumberJPEG 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…

ParameterTypeDescription
text *stringThe text to type on the remote computer.
devicestringName, device code or device_id of the computer to type on. Optional when a session is already open.
press_enterbooleanPress 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.

ParameterTypeDescription
text *stringThe message, up to 8000 characters.
to *stringName, device code or device_id of the computer to send to (see jrd_list_devices).
labelstringWho 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.

ParameterTypeDescription
afternumberReturn every message with an id above this one, read or not.
wait_secondsnumberWait 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.

ParameterTypeDescription
text *stringSubstring to wait for in the OCR result.
case_sensitivebooleanMatch case-sensitively (default false).
displaynumberDisplay index to capture (default 0 = primary).
poll_interval_msnumberDelay between OCR polls in ms (default 1000, min 250).
regionobjectOptional crop {x, y, w, h} (px in screen space) to limit OCR — much faster than full-screen.
timeout_msnumberMax 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.

ParameterTypeDescription
text *stringVisible text on the element (e.g. "Submit", "OK", "File").
case_sensitivebooleanMatch case-sensitively (default false).
displaynumberDisplay index to capture (default 0).
fuzzybooleanAllow ~85% similarity match instead of exact substring (default false).
nthnumberReturn 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.

ParameterTypeDescription
command *stringThe shell command (or argv string when shell=false) to execute.
cwdstringOptional working directory to run the command in.
envobjectOptional extra environment variables merged into the child env.
shellbooleanRun via the system shell so pipes/redirects/glob work (default true). Set false for argv-style.
timeout_msnumberKill 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.

ParameterTypeDescription
region *objectRegion to watch {x, y, w, h} in screen pixels.
displaynumberDisplay index to capture (default 0).
poll_interval_msnumberDelay between screenshots in ms (default 500, min 100).
thresholdnumberPercentage of pixels (0-100) that must differ for the region to count as changed (default 5).
timeout_msnumberMax 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.

ParameterTypeDescription
mode *stringRead current clipboard text, or overwrite it.
textstringText to write (required when mode = 'write').