Type into a TextBox
type-text-boxEnters text into a Roblox TextBox by path, simulating keystrokes to trigger typing handlers or setting the Text property directly for a fast value update.
Instructions
WRITES LIVE GAME STATE. Enter text into a Roblox TextBox by path. Resolves the path to a TextBox, captures its focus, then either simulates real keystrokes (useKeyPress=true, via VirtualInputManager:SendTextInput with a keypress/keyrelease fallback) so text-changed and FocusLost handlers run, or directly sets the .Text property (useKeyPress=false). Optionally presses Enter afterwards and releases focus. Use the keystroke path when scripts react to player typing; use the direct path for a fast value poke. Returns { Path, ok } or { error }. Signature: { path: string, text: string, enter: any?, useKeyPress: any?, threadContext: number? }. Phase: act; cost=medium; idempotency=contextual-write. Requires: active-client, resolved-target, explicit-mutation-approval. Capabilities: VirtualInputManager. Produces: structured-result. Verify with: get-gui-text. Safety: MUTATING; writes live game/client state. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The instance path to the TextBox | |
| text | Yes | The string to type into the TextBox | |
| enter | No | Whether to press Enter after typing | |
| useKeyPress | No | If true, simulates real keystrokes using VirtualInputManager / keypress. If false, directly sets the Text property. | |
| threadContext | No | Optional Roblox thread identity for this call; omit it to use the server default. |