Get the current, Actor, or script LuaStateProxy
get-lua-stateRetrieve current Lua state metadata or that of a target Actor/BaseScript, including Id, IsActorState, Event, Actors, and a reusable registry reference.
Instructions
Call getluastate() for the current state, or getluastate(target) for an Actor/BaseScript expression. Returns serializable Id/IsActorState/Event/Actors metadata plus a reusable registry Reference. Signature: { targetExpression: any?, threadContext: number? }. Phase: observe; cost=medium; idempotency=read-only. Requires: active-client. Capabilities: getluastate. Produces: structured-observation. Safety: read-only. On failure: inspect tool-schema for exact fields, defaults, constraints, and an invocation example.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get-lua-state"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threadContext | No | Optional Roblox thread identity for this call; omit it to use the server default. | |
| targetExpression | No | Optional validated input for target expression. |