Click a GuiButton
click-buttonActivate a Roblox TextButton or ImageButton in the active game client by firing its GUI signals via firesignal, so connected click handlers run as if the local player clicked it.
Instructions
WRITES LIVE GAME STATE. Click a Roblox TextButton or ImageButton by firing its GUI signals via firesignal, exactly as if the local player clicked it — so any handler connected to the button runs. Use when direct UI activation is needed inside the active client. Resolves the path to a GuiButton, then either fires the single named action signal or, when action is omitted, fires every standard click signal (Activated, MouseButton1Down, MouseButton2Down, MouseButton1Click, MouseButton2Click). Requires the executor's firesignal; degrades with a clear { error } if unavailable. Returns { Path, Fired, ok } or { error }. Signature: { path: string, action: string?, threadContext: number? }. Phase: act; cost=medium; idempotency=contextual-write. Requires: active-client, resolved-target, explicit-mutation-approval. Capabilities: firesignal. 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 Button | |
| action | No | The specific signal to fire (e.g., 'Activated', 'MouseButton1Click'). If omitted, fires all standard click signals. | |
| threadContext | No | Optional Roblox thread identity for this call; omit it to use the server default. |