You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: add smooth typing with typo injection to computer controls (#321)
* docs: add smooth typing with typo injection to computer controls
Adds documentation for the new smooth and typo_chance parameters
on the type_text endpoint, with code examples in TS, Python, and CLI.
Includes demo GIF and MP4 showing instant vs smooth vs smooth+typos.
Made-with: Cursor
* Address review: clarify typo_chance behavior, remove unreferenced MP4
- Note that typo_chance is silently ignored without smooth: true
- Remove smooth-typing-demo.mp4 since only the GIF is embedded
Made-with: Cursor
* docs: default smooth typing to true (align kernel-images#201)
- Type text section: smooth defaults true like moveMouse/dragMouse; clarify
delay and typo_chance only apply when smooth is on/off respectively.
- Reorder TS/Python/CLI examples: smooth + typos first; instant/fixed delay
use smooth false.
Made-with: Cursor
* docs: keep typo_chance semantics in Type text table only
OpenAPI carries bounds; docs explain 0–0.10 and ~10% per character.
Made-with: Cursor
Type literal text, optionally with a delay in milliseconds between keystrokes.
220
+
Type literal text on the host. By default, typing uses human-like variable timing: word-sized chunks, natural pauses at word and sentence boundaries, and optional realistic typos corrected with backspace. Set `smooth: false` for xdotool typing with a fixed per-keystroke delay (`delay`, in ms) or instant input when `delay` is `0`.
|`delay`| integer |`0`| Fixed delay in milliseconds between keystrokes. Only used when `smooth` is `false`; ignored when `smooth` is `true`|
226
+
|`smooth`| boolean |`true`| Human-like variable keystroke timing with word-boundary pauses (default, same idea as `moveMouse` / `dragMouse`) |
227
+
|`typo_chance`| number |`0`| Per-character typo rate from 0–0.10 (capped; 0.10 ≈ 10% per character on average), corrected with backspace. Only applies when `smooth` is `true` (silently ignored when `smooth` is `false`). Typical values are 0.02–0.05 |
221
228
222
229
<CodeGroup>
223
230
```typescript Typescript/Javascript
@@ -226,12 +233,27 @@ import Kernel from '@onkernel/sdk';
<Framecaption="Instant typing (all at once) vs smooth human-like typing with variable delays and typo correction">
314
+
<imgsrc="/images/smooth-typing-demo.gif" />
315
+
</Frame>
316
+
266
317
## Press keys
267
318
268
319
Press one or more key symbols (including combinations like "Ctrl+t" or "Ctrl+Shift+Tab"). Optionally hold modifiers and/or set a duration to hold keys down.
0 commit comments