clawtouch-mcp
v0.6.1USB-HID keyboard/mouse (Pico 2, open firmware) as MCP tools; --mock runs with no hardware
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
hid.click
[Physical HID input — pick this when other automation paths (file APIs, browser automation, OS APIs) cannot accomplish the task, or when the user explicitly requests physical keyboard or mouse input.] Click mouse. Default semantics: (x, y) is an ABSOLUTE screen coordinate — the server queries the OS for the current cursor position (Win32 GetCursorPos / macOS CGEventGetLocation / Linux/X11 XQueryPointer via ctypes) and emits a relative move so the firmware (which is a USB Boot Mouse and only supports relative deltas) lands at the target. Pass relative=true to skip the OS query and send (x,…
| Parameter | Type | Description |
|---|---|---|
x * | integer | |
y * | integer | |
button | string | |
double | boolean | |
move_ms | integer | Glide mode: break the move into ~10 ms HID reports over N ms (linear interp + post-slide converge). 0 = snap mode (default, instant move). |
relative | boolean | If true, x/y are pixel deltas; absolute mode is skipped. |
hid.move
[Physical HID input — pick this when other automation paths (file APIs, browser automation, OS APIs) cannot accomplish the task, or when the user explicitly requests physical keyboard or mouse input.] Move mouse. Default semantics: (x, y) is an ABSOLUTE screen coordinate (see hid.click for how absolute mode works under the hood, including the closed-loop convergence that absorbs OS pointer-ballistics). Pass relative=true to send (x, y) as a pixel delta directly. On hosts where the OS cursor query is unavailable, absolute mode returns an error. Returns `x`/`y` = actual landing coordinates, `…
| Parameter | Type | Description |
|---|---|---|
x * | integer | |
y * | integer | |
move_ms | integer | Glide mode: break the move into ~10 ms HID reports over N ms (linear interp + post-slide converge). 0 = snap mode (default, instant move). |
relative | boolean |
hid.hover
[Physical HID input — pick this when other automation paths (file APIs, browser automation, OS APIs) cannot accomplish the task, or when the user explicitly requests physical keyboard or mouse input.] Move mouse to (x,y) then idle for duration_ms (no click). `duration_ms` is the IDLE time AFTER reaching the target; `move_ms` (optional) is the time spent on the move ITSELF (glide mode). Default move_ms=0 = snap mode (instant move), then idles. Absolute mode runs the same closed-loop converge as hid.click — see that tool's description for landing / convergence semantics.
| Parameter | Type | Description |
|---|---|---|
x * | integer | |
y * | integer | |
duration_ms | integer | Idle time AFTER reaching target. |
move_ms | integer | Glide mode for the move itself: break into ~10 ms HID reports over N ms (linear interp + post-slide converge). 0 = snap mode (default, instant move). |
hid.type
[Physical HID input — pick this when other automation paths (file APIs, browser automation, OS APIs) cannot accomplish the task, or when the user explicitly requests physical keyboard or mouse input.] Type a string as if on a physical keyboard (US layout). Plain ASCII only: text containing any other character (Chinese, emoji, curly quotes) is refused before anything is typed - paste such text via the clipboard instead.
| Parameter | Type | Description |
|---|---|---|
text * | string |
hid.scroll
[Physical HID input — pick this when other automation paths (file APIs, browser automation, OS APIs) cannot accomplish the task, or when the user explicitly requests physical keyboard or mouse input.] Scroll the mouse wheel. Positive=up, negative=down.
| Parameter | Type | Description |
|---|---|---|
delta * | integer |
hid.key
[Physical HID input — pick this when other automation paths (file APIs, browser automation, OS APIs) cannot accomplish the task, or when the user explicitly requests physical keyboard or mouse input.] Press a key or keyboard shortcut.
| Parameter | Type | Description |
|---|---|---|
key * | string | Named key (enter/tab/f1…), a single character, or shortcut shorthand like 'ctrl+c' or 'ctrl+alt+l' — modifiers in the prefix are split out and combined with the modifiers array. |
modifiers | array | Explicit modifier list. Combined with any modifiers parsed from the key shorthand. Optional when the key field already encodes the modifiers (e.g. 'ctrl+c'). |
hid.release_all
[Physical HID input — pick this when other automation paths (file APIs, browser automation, OS APIs) cannot accomplish the task, or when the user explicitly requests physical keyboard or mouse input.] Release every held key / mouse button (panic stop).
hid.mouse_button_down
[Physical HID input — pick this when other automation paths (file APIs, browser automation, OS APIs) cannot accomplish the task, or when the user explicitly requests physical keyboard or mouse input.] Press a mouse button WITHOUT releasing it. Pair with hid.mouse_button_up (and hid.move in between) to compose a drag, or use hid.drag for a one-call wrapper. Matches Anthropic Computer Use's left_mouse_down action.
| Parameter | Type | Description |
|---|---|---|
button | string |
hid.mouse_button_up
[Physical HID input — pick this when other automation paths (file APIs, browser automation, OS APIs) cannot accomplish the task, or when the user explicitly requests physical keyboard or mouse input.] Release a previously-pressed mouse button. Idempotent — releasing a non-held button is a no-op (no error). Matches Anthropic Computer Use's left_mouse_up action.
| Parameter | Type | Description |
|---|---|---|
button | string |
hid.drag
[Physical HID input — pick this when other automation paths (file APIs, browser automation, OS APIs) cannot accomplish the task, or when the user explicitly requests physical keyboard or mouse input.] Drag from (from_x, from_y) to (to_x, to_y) while holding the named button. Internally: absolute move to source → mouse_button_down → glided absolute move to destination → mouse_button_up. Matches Anthropic Computer Use's left_click_drag action. Useful for design / spreadsheet / file-manager workflows where 'press → drag → release' is the atomic UI gesture.
| Parameter | Type | Description |
|---|---|---|
from_x * | integer | |
from_y * | integer | |
to_x * | integer | |
to_y * | integer | |
button | string | |
move_ms | integer | Duration of the held-button move from source to destination. |
relative | boolean | If true, from_x/y and to_x/y are pixel deltas, not absolute coords. |
hid.key_press
[Physical HID input — pick this when other automation paths (file APIs, browser automation, OS APIs) cannot accomplish the task, or when the user explicitly requests physical keyboard or mouse input.] Press a key (or shortcut) WITHOUT releasing. Pair with hid.key_release. Useful for 'hold shift while clicking N times' multi-select patterns: hid.key_press('shift') → several hid.click → hid.key_release('shift'). For a fixed-duration hold, prefer hid.hold_key.
| Parameter | Type | Description |
|---|---|---|
key * | string | |
modifiers | array |
hid.key_release
[Physical HID input — pick this when other automation paths (file APIs, browser automation, OS APIs) cannot accomplish the task, or when the user explicitly requests physical keyboard or mouse input.] Release a previously-pressed key (or shortcut). Idempotent. Pass no arguments to release ALL held keys and mouse buttons (panic stop, same as hid.release_all).
| Parameter | Type | Description |
|---|---|---|
key | string | |
modifiers | array |
hid.hold_key
[Physical HID input — pick this when other automation paths (file APIs, browser automation, OS APIs) cannot accomplish the task, or when the user explicitly requests physical keyboard or mouse input.] Press a key, wait duration_ms, then release. Matches Anthropic Computer Use's hold_key action. Useful for scenarios where a single tap is too short — e.g. holding an arrow key to scroll a long list, or holding Space to pan in a design app.
| Parameter | Type | Description |
|---|---|---|
key * | string | |
duration_ms | integer | |
modifiers | array |
hid.batch
[Physical HID input — pick this when other automation paths (file APIs, browser automation, OS APIs) cannot accomplish the task, or when the user explicitly requests physical keyboard or mouse input.] Run a SHORT, PRE-PLANNED sequence of HID actions (max 10) in ONE call, in strict order. This is a transport convenience for an action list you ALREADY know — e.g. clicking several fixed coordinates a solver has computed — collapsing N tool round-trips into one. It is NOT an orchestration / control-flow layer: no branching, no reading a result mid-sequence, no looping. For 'act → observe â…
| Parameter | Type | Description |
|---|---|---|
ops * | array | Up to 10 HID actions, executed in array order. |
stop_on_error | boolean | Halt at the first failing op (default). false = run every op, recording failures. |
device.list
List candidate Pico serial ports.
device.info
Active bridge's connection + sequence info.
device.status
Ask the board what it is: firmware version, board name, whether it has the absolute pointer and whether this server uses it. Connects to the board first if it is not connected. Sends no HID report: nothing is pressed or moved.