List entries in an executor workspace folder (UNC listfiles)
list-filesRetrieve the paths of files and subfolders in a folder within the Roblox executor's workspace. Use it to explore directory contents before reading or processing files.
Instructions
List the files and subfolders directly inside a folder in the executor's workspace, returning their paths. NOTE: this is executor-side file I/O — the connector runs INSIDE the executor, so the path is relative to the executor's workspace directory on the host machine, NOT the Roblox game. Pass an empty string to list the workspace root. Requires the UNC function listfiles(path) -> { string }. The call is type-guarded and pcall-wrapped: if listfiles is missing you get { error = 'listfiles is not available in this executor.' }, and any failure (missing folder) returns { error = }. The returned list is capped at 1000 entries with a 'truncated' flag. Returns { path, files, count, truncated } or { error }. Signature: { path: string, threadContext: number?, timeoutMs: number? }. Phase: observe; cost=medium; idempotency=read-only. Requires: active-client, resolved-target. Capabilities: readfile. Produces: bounded-candidates. 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 folder within the executor workspace, e.g. '' (root), 'logs', or 'data/snapshots'. | |
| 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. |