Scan closures by source
scan-closures-by-sourceLocate getgc closures by matching a substring in their debug source, so you can inspect specific Luau functions in a live Roblox client.
Instructions
Find getgc closures whose debug source contains a target substring. Signature: { sourceQuery: string, limit: any?, includeCClosures: any?, threadContext: number? }. Phase: observe; cost=high; idempotency=read-only. Requires: active-client. Capabilities: getgc, debug closure primitives. 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 |
|---|---|---|---|
| limit | No | Optional hard result/work budget used to keep output and runtime bounded. | |
| sourceQuery | Yes | search text used to filter and rank bounded results. | |
| threadContext | No | Optional Roblox thread identity for this call; omit it to use the server default. | |
| includeCClosures | No | Whether to include cclosures in the bounded result. |