Trigger
trigger.deviceFile watch
Watch a folder on a paired computer for file changes.
When to use it
Use it for hot folders, local exports, scanner output, or files behind a VPN.
Configuration
| Field | Type | What it controls |
|---|---|---|
| Path* | absolute path | Folder inside the desktop agent's allowed filesystem roots. |
| Glob | string | Optional filename filter such as *.pdf. |
| Events | array | File events to observe; defaults to created. |
| Recursive / debounce | boolean / duration | Include subfolders and suppress duplicate events. |
| Device | device ID | Pin to one machine or listen on every capable paired device. |
* Required
Output
Includes {{trigger.path}}, {{trigger.name}}, {{trigger.event}}, and {{trigger.deviceId}}.
Example
When a PDF appears, use Run on device with {{trigger.deviceId}} to read it, then archive it.
Good to know
- A watch can fire up to 30 times per minute; excess events are dropped.
- The event carries file metadata, not file bytes.
