Base64-encode a string via the executor crypt library
crypt-base64-encodeEncodes a raw string to Base64 inside a live Roblox executor using its crypt library, returning the encoded value or a clean error object instead of throwing.
Instructions
Encode an arbitrary string to Base64 using the executor's crypt library. This is a pure, side-effect-free compute that runs entirely in-game. The encoder probes BOTH the flat form (crypt.base64encode) and the namespaced form (crypt.base64.encode), using whichever the executor provides. Requires a crypt table; on an executor without it (no crypt, or no base64 encoder under either name) it returns { error } instead of throwing. The call is pcall-guarded so a malformed input degrades to a clean error. Returns { encoded } or { error }. Signature: { data: string, threadContext: number?, timeoutMs: number? }. Phase: observe; cost=medium; idempotency=read-only. Requires: active-client. Produces: structured-result. Safety: read-only. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | The raw string to Base64-encode. | |
| 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. |