Read a file from the executor workspace (UNC readfile)
read-fileRead a file from the executor workspace folder and return its full contents as a string. Missing or unreadable files return an error object.
Instructions
Read the entire contents of a file from the executor's workspace folder and return it as a string. NOTE: this is executor-side file I/O — the connector runs INSIDE the executor, so paths are relative to the executor's workspace directory on the host machine, NOT anything in the Roblox game/DataModel. Requires the UNC function readfile(path). The call is type-guarded and pcall-wrapped: if readfile is missing you get { error = 'readfile is not available in this executor.' }, and any read failure (missing file, permission) returns { error = }. Returns { path, content } or { error }. Signature: { path: string, threadContext: number?, timeoutMs: number? }. Phase: observe; cost=medium; idempotency=read-only. Requires: active-client, resolved-target. Capabilities: readfile. Produces: structured-observation. Safety: read-only. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file within the executor workspace folder, e.g. 'config.json' or 'logs/session.txt'. Resolved by the executor relative to its own workspace directory. | |
| 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. |