Desktop Input (HID)
Simulate Keyboard/Mouse input.
Simulates one keyboard or mouse action (type text, tap a key, move the pointer or left-click) on the machine that runs the worker.
How it works
- Checks that the native input module is loaded; if not, leaves through
errorwithout doing anything. - Resolves the config.
type(defaultkeyboard) andactionfall back to the same keys of the incoming payload. - Reads the action arguments
text,x,y,keyandmodifierfrompayload.payload, else frompayload. When the node config has nopayload,payloadis the incoming data. - Keyboard:
typetypestext;keyTaptapskeywith an optionalmodifier(string or array). Mouse:movemoves to (x,y), defaulting to 0;clickleft-clicks at the current position. - Returns
{ success: true }throughout.
In a workflow
The node as it appears in a workflow file (draft_nodes[]), and the envelope of a successful run.
{
"node_id": "node-type-reference",
"label": "Type reference",
"operator_slug": "io.desktop.input",
"operator_version": "1.0.0",
"config": {
"type": "keyboard",
"action": "type",
"payload": {
"text": "{{ $json.reference }}"
}
}
}{
"ok": true,
"data": {
"success": true
},
"port": "out"
}Configuration
-
typestring Required -
actionstring Required -
payloadobject Optional -
{ text, x, y, key, modifier }
Behaviour in the code
What the implementation does with these keys beyond what the schema says.
-
action - Valid pairs:
keyboard+type/keyTap,mouse+move/click. Any other pair is a silent no-op that still leaves throughout. -
payload - Holds the action arguments
{ text, x, y, key, modifier }. A nestedpayload.payloadtakes precedence.clickignoresxandy; move first.
Output ports
out default The action ran. Also fires when the type/action combination matches nothing, in which case nothing was simulated.
{
"success": true
}error The native input module is not available, or the action failed (for example, an invalid key name).
{
"error": "RobotJS Native Module not available in this environment"
}In expressions
What a later node can read from this node's output with $("Desktop Input (HID)").item.json.<path> (write your node's label instead of Desktop Input (HID)). Editor marks the paths the workflow editor suggests under Previous Nodes (the output contract); Worker marks the paths the worker really returns through out, from the output shown in Ports.
| Expression | Editor | Worker |
|---|---|---|
$("Desktop Input (HID)").item.json.success |
Errors
| Message | Port | Cause and fix |
|---|---|---|
RobotJS Native Module not available in this environment | error | The native input library could not be loaded on the host (no desktop session or unsupported platform). Run the node on a machine with a desktop session. |
<input library error message> | error | The library rejected the arguments, typically a missing or unknown key for keyTap. Pass a valid key name. |
Input contract
-
typestring Required -
actionstring Required -
payloadobject Optional
Output contract
-
successboolean Optional
Contracts (JSON Schema)
The definition exactly as the orchestrator declares it. All is the whole *.definition.js; compare it with the sections above to spot differences between the documentation and the schema. Use it to validate a node before you publish.
{
"slug": "io.desktop.input",
"name": "Desktop Input (HID)",
"category": "io",
"version": "1.0.0",
"description": "Simulate Keyboard/Mouse input.",
"capabilities": [
"hid",
"keyboard",
"mouse",
"desktop"
],
"config_schema": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"keyboard",
"mouse"
],
"default": "keyboard"
},
"action": {
"type": "string",
"enum": [
"type",
"click",
"move",
"keyTap"
]
},
"payload": {
"type": "object",
"description": "{ text, x, y, key, modifier }"
}
},
"required": [
"type",
"action"
]
},
"input_contract_schema": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"action": {
"type": "string"
},
"payload": {
"type": "object"
}
},
"required": [
"type",
"action"
]
},
"output_contract_schema": {
"type": "object",
"properties": {
"success": {
"type": "boolean"
}
}
},
"ports": [
{
"port_id": "out",
"label": "Done",
"description": "Input action simulated",
"is_default": true,
"supports_condition": true
},
{
"port_id": "error",
"label": "Error",
"description": "Simulation failed",
"is_default": false,
"supports_condition": false
}
],
"execution_mode": "async",
"required_resources": [],
"compatible_worker_pools": [
"desktop-agent"
],
"tags": [
"desktop",
"hid"
],
"is_stateful": false,
"publisher": {
"identity": "org_link_loom",
"profile": {
"name": "Link Loom",
"verified": true,
"url": "https://me.veripass.com/link-loom",
"logo_url": null
}
}
}{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"keyboard",
"mouse"
],
"default": "keyboard"
},
"action": {
"type": "string",
"enum": [
"type",
"click",
"move",
"keyTap"
]
},
"payload": {
"type": "object",
"description": "{ text, x, y, key, modifier }"
}
},
"required": [
"type",
"action"
]
}{
"type": "object",
"properties": {
"type": {
"type": "string"
},
"action": {
"type": "string"
},
"payload": {
"type": "object"
}
},
"required": [
"type",
"action"
]
}{
"type": "object",
"properties": {
"success": {
"type": "boolean"
}
}
}[
{
"port_id": "out",
"label": "Done",
"description": "Input action simulated",
"is_default": true,
"supports_condition": true
},
{
"port_id": "error",
"label": "Error",
"description": "Simulation failed",
"is_default": false,
"supports_condition": false
}
]Execution
- Execution
async- Stateful
- No
- Capabilities
hidkeyboardmousedesktop- Tags
desktophid
Notes and limits
- Input is injected into the active desktop session of the host that runs the worker; whatever window has focus receives it.
- One node performs exactly one action. Chain several nodes for a sequence (for example
move, thenclick, thentype).
Reviewed against the orchestrator code · 31e874b · 2026-11-26