cache.iscached — check whether an instance is in the executor cache
cache-is-cachedCheck whether a Roblox Instance holds a cached reference before invalidating it, or confirm an invalidation dropped it. Returns { cached } or { error }.
Instructions
Report whether the executor currently holds a cached reference for a single Instance via cache.iscached(inst). Pairs with cache-invalidate / cache-replace: use it to confirm an instance is cached before invalidating it, or to verify that an invalidate actually dropped the cached reference. The target is resolved from a Luau path/expression via loadstring('return ' .. expr). Read-only. Requires the cache library (type(cache)=='table') with cache.iscached — both are type-guarded and the call is pcall-wrapped, returning { error } when missing or on failure. Returns { cached } or { error }. Signature: { instancePath: string, threadContext: number?, timeoutMs: number? }. Phase: observe; cost=medium; idempotency=read-only. Requires: active-client, resolved-target. 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 |
|---|---|---|---|
| timeoutMs | No | Optional per-call deadline in milliseconds; omit it to use the tool or server default. | |
| instancePath | Yes | Luau path/expression resolving to the Instance to check, e.g. 'game.Workspace.Boss'. Evaluated as `return <expression>`. | |
| threadContext | No | Optional Roblox thread identity for this call; omit it to use the server default. |