> 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.

# Interface: ApiScribuntoConsoleError

Defined in: [extensions/scribunto.ts:56](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/extensions/scribunto.ts#L56)

The `type: "error"` shape (a Lua error reported in band).

## Extends

- `ApiScribuntoConsoleBase`

## Properties

### html?

> `optional` **html?**: `string`

Defined in: [extensions/scribunto.ts:58](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/extensions/scribunto.ts#L58)

Rendered error plus backtrace HTML (`<ol class="scribunto-trace">…`).

***

### message?

> `optional` **message?**: `string`

Defined in: [extensions/scribunto.ts:61](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/extensions/scribunto.ts#L61)

Plain-text error message.

***

### messagename?

> `optional` **messagename?**: `string`

Defined in: [extensions/scribunto.ts:64](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/extensions/scribunto.ts#L64)

i18n key of [message](#message).

***

### session?

> `optional` **session?**: `number`

Defined in: [extensions/scribunto.ts:34](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/extensions/scribunto.ts#L34)

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](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/extensions/scribunto.ts#L43)

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](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/extensions/scribunto.ts#L40)

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

#### Inherited from

`ApiScribuntoConsoleBase.sessionMaxSize`

***

### sessionSize?

> `optional` **sessionSize?**: `number`

Defined in: [extensions/scribunto.ts:37](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/extensions/scribunto.ts#L37)

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

#### Inherited from

`ApiScribuntoConsoleBase.sessionSize`

***

### type?

> `optional` **type?**: [`ScribuntoConsoleType`](https://types-mediawiki-response.pages.dev/api/extensions/scribunto/ScribuntoConsoleType.md)

Defined in: [extensions/scribunto.ts:31](https://github.com/BearBin1215/types-mediawiki-response/blob/c1e25ea2ef2684b43c79e05d6e0dd36e33fbc9a3/src/extensions/scribunto.ts#L31)

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

#### Inherited from

`ApiScribuntoConsoleBase.type`
