Show a native host message box (sUNC messagebox)
message-boxDisplays a native OS dialog on the host machine via the Roblox executor, blocking until dismissed and returning the numeric button code.
Instructions
WRITES HOST STATE — pops up a NATIVE OS dialog on the host machine via messagebox(text, caption, flags). The flags select the dialog's button/icon style (the same bitfield as the Win32 MessageBox), and the call blocks until the user dismisses it, returning the numeric code of the button pressed. Requires messagebox. The call is type-guarded and pcall-wrapped: if messagebox is missing you get { error = 'messagebox is not available in this executor.' }. Returns { result } or { error }. Signature: { text: string, caption: any?, flags: any?, threadContext: number?, timeoutMs: number? }. Phase: act; cost=medium; idempotency=contextual-write. Requires: active-client, explicit-mutation-approval. Produces: structured-result. Verify with: assert-state. 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 |
|---|---|---|---|
| text | Yes | The body text shown in the dialog. | |
| flags | No | The dialog style bitfield (default 0 = OK button only). | |
| caption | No | The dialog title/caption (default 'MCP'). | MCP |
| timeoutMs | No | Optional per-call deadline in milliseconds; omit it to use the tool or server default. | |
| threadContext | No | Optional Roblox thread identity for this call; omit it to use the server default. |