Spy on outgoing RakNet packets
packet-spyInstall a RakNet send hook to capture outgoing low-level client packets; fetch size, priority, reliability, channel, and hex preview, then stop to remove the hook.
Instructions
WRITES LIVE GAME STATE — installs a RakNet send hook. Captures every OUTGOING low-level packet the client sends (RakNet only exposes outgoing traffic). For each packet it records Size, Priority, Reliability, OrderingChannel, and a hex preview of the payload. action='start' installs the hook (idempotent), 'fetch' returns the captured packets newest-first without stopping, 'stop' removes the hook and clears the buffer. Requires the raknet library. WARNING: packet-level interception is risky and can disconnect or flag the client — stop when done. Signature: { action: "start" | "fetch" | "stop", limit: any?, previewBytes: any?, threadContext: number? }. Phase: act; cost=medium; idempotency=contextual-write. Requires: active-client, explicit-mutation-approval. Capabilities: RakNet packet APIs. Produces: bounded-event-snapshot. 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 |
|---|---|---|---|
| limit | No | Max packets to return on fetch (default 100, newest-first). | |
| action | Yes | 'start' installs the send hook; 'fetch' returns captured packets; 'stop' removes the hook. | |
| previewBytes | No | How many payload bytes to include as a hex preview per packet (default 64). | |
| threadContext | No | Optional Roblox thread identity for this call; omit it to use the server default. |