For AI agents: the complete documentation index is available at https://types-mediawiki-response.pages.dev/llms.txt, the full documentation bundle is available at https://types-mediawiki-response.pages.dev/llms-full.txt, and this page is available as Markdown at https://types-mediawiki-response.pages.dev/api/extensions/scribunto/ApiScribuntoConsoleNormal.md.
  • English
  • Interface: ApiScribuntoConsoleNormal

    Defined in: extensions/scribunto.ts:47

    The type: "normal" shape (print output plus the returned value).

    Extends

    • ApiScribuntoConsoleBase

    Properties

    print?

    optional print?: string

    Defined in: extensions/scribunto.ts:49

    Text emitted by print() calls (newline-terminated); empty when nothing printed.


    return?

    optional return?: string

    Defined in: extensions/scribunto.ts:52

    Stringified value from a return statement; empty when the question returned nothing.


    session?

    optional session?: number

    Defined in: extensions/scribunto.ts:34

    Opaque console session id; echo it back (via a stable cookie) to keep state across questions.

    Inherited from

    ApiScribuntoConsoleBase.session


    sessionIsNew?

    optional sessionIsNew?: ""

    Defined in: extensions/scribunto.ts:43

    Valueless flag: the empty string when this question started a new session, else absent.

    Inherited from

    ApiScribuntoConsoleBase.sessionIsNew


    sessionMaxSize?

    optional sessionMaxSize?: number

    Defined in: extensions/scribunto.ts:40

    Byte ceiling before scribunto-console-too-large is raised.

    Inherited from

    ApiScribuntoConsoleBase.sessionMaxSize


    sessionSize?

    optional sessionSize?: number

    Defined in: extensions/scribunto.ts:37

    Bytes used so far in the session (content plus accumulated questions).

    Inherited from

    ApiScribuntoConsoleBase.sessionSize


    type?

    optional type?: ScribuntoConsoleType

    Defined in: extensions/scribunto.ts:31

    Whether the question evaluated cleanly (normal) or raised a Lua error (error).

    Inherited from

    ApiScribuntoConsoleBase.type