Check whether a path is a file or folder in the executor workspace (UNC isfile/isfolder)
file-existsProbe a path inside the Roblox executor workspace to check whether it resolves to an existing file, folder, or neither, returning structured isFile and isFolder flags.
Instructions
Probe a path in the executor's workspace and report whether it is an existing file and/or an existing folder. 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. Requires the UNC functions isfile(path) -> bool and isfolder(path) -> bool. Each is type-guarded and pcall-wrapped INDEPENDENTLY: if a probe's function is missing or errors, its result is reported as false. If NEITHER isfile nor isfolder is available you get { error = 'isfile/isfolder are not available in this executor.' }. Returns { path, isFile, isFolder } 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-result. 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 within the executor workspace to probe, e.g. 'config.json' or 'data'. Reported as file and/or folder. | |
| 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. |