Block outgoing RakNet packets by criteria
block-packetsDrops matching outgoing RakNet packets by minimum byte size or hex payload using a live send hook; start installs the filter, stop removes it.
Instructions
WRITES LIVE GAME STATE — installs a RakNet send hook that DROPS matching outgoing packets. A packet is blocked when its Size >= minSize (if set) and/or its payload contains containsHex (if set); with neither criterion every outgoing packet is blocked (dangerous). action='start' installs the hook, 'stop' removes it. Requires the raknet library. WARNING: blocking outgoing traffic can break the game, freeze replication, or disconnect the client — use narrow criteria and stop promptly. Signature: { action: "start" | "stop", minSize: number?, containsHex: string?, threadContext: number? }. Phase: act; cost=medium; idempotency=idempotent-write. Requires: active-client, explicit-mutation-approval. Capabilities: RakNet packet APIs. Produces: operation-receipt. Verify with: assert-state. Safety: MUTATING; performs external network or socket I/O. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | 'start' installs the blocking hook; 'stop' removes it. | |
| minSize | No | Block packets whose Size is at least this many bytes. Omit to not filter by size. | |
| containsHex | No | Block packets whose payload contains this hex byte sequence (e.g. '1a2b'). Omit to not filter by content. | |
| threadContext | No | Optional Roblox thread identity for this call; omit it to use the server default. |