โ† API reference
Query / scripting

getScript

Fetch a script by ID. Requires script:read permission.

Arguments

Script ID to fetch

Returns ScriptState

Scalar fields at a glance

nameString!
contentString!
createdAtISO8601!
updatedAtISO8601!
โ†— View the complete ScriptState type

Explore in a view

Scripting
View exact SDL
"""Fetch a script by ID. Requires script:read permission."""
getScript(
  """Script ID to fetch"""
  id: ScriptID!
): ScriptState @topic(names: ["scripting"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.